Can't get variable "ACTION" during compilation (RESOLVED)
Can't get variable "ACTION" during compilation (RESOLVED)
- Subject: Can't get variable "ACTION" during compilation (RESOLVED)
- From: Shuaiying Hou <email@hidden>
- Date: Sat, 02 Jun 2012 13:23:29 +0800
THX for Roland King's quick reply, and I've found the solution below:
Now I add the script in "build phases" then it worked. I also found some interesting stuff in Xcode's build log:
cd /Users/developer/project/resourceTest setenv ACTION build setenv AD_HOC_CODE_SIGNING_ALLOWED NO setenv ALTERNATE_GROUP staff setenv ALTERNATE_MODE u+w,go-w,a+rX ......
So it seems Xcode set these environment variables in "build phase" but not in "post actions". You can run some scripts or send an E-mail in "post actions" but not all of these environment variables used by project are guaranteed that can be used properly.
Furthermore, you can't get any script error message when it's running at "post actions". Xcode also ignores these errors so your build process won't crash. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden