Accessing Xcode 5 config build settings from a script?
Accessing Xcode 5 config build settings from a script?
- Subject: Accessing Xcode 5 config build settings from a script?
- From: Allen Cronce <email@hidden>
- Date: Thu, 07 Aug 2014 09:07:52 -0700
Hi all,
For years we've used something like the following to access configuration build settings from a script on older versions of Xcode (before Xcode 4):
osascript -e 'tell application "Xcode" to return value of flattened build setting "PRODUCT_NAME" of build configuration "Debug" of target "MyTarget" of project "MyProject"'
Unfortunately with Xcode 5, this fails with an error like the following:
35:40: execution error: Xcode got an error: Can’t get flattened build setting "PRODUCT_NAME" of build configuration "Debug" of target "MyTarget" of project "MyProject". (-1728)
I've tried to access several different build settings at all levels (config, target, and project) and nothing works. I've poked at Xcode 5's AppleScript dictionary and it appears that the flattened build setting and build setting elements have not changed since Xcode 3. There's no hints there as to why this no longer works. Google has turned up nothing useful.
I don't mind filing a radar bug, but in the meantime I need to get this to work.
Does anyone have suggestions for accessing config build settings from a script?
Best,
Allen Cronce
_______________________________________________
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