Re: Access Build Settings in a User Script?
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