• 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
Re: Access Build Settings in a User Script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access Build Settings in a User Script?


  • Subject: Re: Access Build Settings in a User Script?
  • From: Karl Moskowski <email@hidden>
  • Date: Mon, 17 Nov 2008 15:23:18 -0500


On 17-Nov-08, at 1:51 PM, email@hidden wrote:

Build settings are passed to your script as environment variables.
So that you can access them directly.
For example: $SRCROOT should be a simple replacement for your Applescript. ;)


EG

-----Original Message-----
SOURCE_ROOT=`osascript -e "tell application \"Xcode\" to return value
of flattened build setting \"SRCROOT\" of build configuration \"Release
\" of active target of item 1 of projects"`


While we're at it, is there any way for a Run Script phase to get the error status of a previous phase? In particular, I'd like my code- signing script to run only if the build was successful. Right now, if the build fails, the codesign also fails because there's nothing to sign.

----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Access Build Settings in a User Script?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Verifying Code Signing Identity
  • Next by Date: Re: Verifying Code Signing Identity
  • Previous by thread: Re: Access Build Settings in a User Script?
  • Next by thread: Re: Access Build Settings in a User Script?
  • Index(es):
    • Date
    • Thread