Re: Accessing Xcode 5 config build settings from a script?
Re: Accessing Xcode 5 config build settings from a script?
- Subject: Re: Accessing Xcode 5 config build settings from a script?
- From: Allen Cronce <email@hidden>
- Date: Thu, 07 Aug 2014 15:01:14 -0700
Hi all,
Thanks to Jerry, Kyle, and Charles for your responses. The xcodebuild -showBuildSettings option is what I was looking for.
We make extensive use of xcconfig files for our own projects. But the issue is that we provide a toolkit to our customers, and we cannot control whether they use xcconfig files or not.
The problem of being unable to obtain build settings programmatically was in a script in our build chain used by our customers. I've now updated that script to conditionally use either AppleScript or xcodebuild depending on the Xcode version. I had to do this because we have to work with all sorts of versions of Xcode, and older versions of xcodebuild don't support the -showBuildSettings.
It's kind of odd that this problem in our tool chain went unnoticed for several years. But apparently it was hidden by our sample code (which didn't demonstrate the problem). Any customers who are using modern versions of Xcode and ran into this must have worked around the issue without telling us.
In any case, thanks again for the help.
Best,
Allen Cronce
On Aug 7, 2014, at 9:52 AM, Jerry Krinock <email@hidden> wrote:
> The two replies you got from Kyle and Charles are true.
>
> One alternative you should consider is to put those Build Settings which you need to mess with in .xcconfig files. These things are easy to add to your project, have a bonehead-simple syntax and of course are friendly to source control, and reading and writing by scripts.
>
> I had bad luck, though, finding any information on .xcconfig files in the Xcode documentation today. Well, these two blog posts should get you started…
>
> http://niconit.wordpress.com/2013/03/15/xcode-build-with-configuration-setting-files-xcconfig/http://respectthecode.tumblr.com/post/16167385557/xcode-4-and-xcconfig-files
>
_______________________________________________
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