• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't get variable "ACTION" during compilation (RESOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. 

Regards
Rick Hou




 _______________________________________________
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

  • Prev by Date: Re: man pages?
  • Next by Date: Re: add localized readme, license etc. in a distribution package using productbuild
  • Previous by thread: Re: man pages?
  • Next by thread: RE: Can I remove old Simulators? (solved)
  • Index(es):
    • Date
    • Thread