Re: conditional settings based on architecture -- broken?
Re: conditional settings based on architecture -- broken?
- Subject: Re: conditional settings based on architecture -- broken?
- From: Michael Rawdon <email@hidden>
- Date: Tue, 6 Apr 2010 14:37:37 -0700
On Apr 6, 2010, at 2:20 PM, Chris Espinosa wrote: On Apr 6, 2010, at 1:38 PM, Andy O'Meara wrote: Hey Xcoders, quick question...
I'm following the guidance of the following Apple Q&A on modifying an xcode project's project.pbxproj file without success:
http://developer.apple.com/mac/library/qa/qa2009/qa1666.html
Namely, adding 'GCC_ENABLE_OBJC_GC[sdk=macosx10.6][arch=x86_64] = required' causes xcode to error out when opening the project. I've tried all kinds of permutations with and without semi-colons without success. My guess is that this Q&A is outdated and that someone here can help.
So if anyone can point me to docs discussing how to make various settings arch dependent I'd really appreciate it (as my searching has come up dry).
Yes, I know I can set up multiple Xcode projects and merge the binaries via shell script but I'm looking for a low maintenance (and much less painful) solution.
Why are you hand-editing the project file at all?
You can paste that text into the Build Settings panel itself and Xcode will do its job of saving it in the project file for you. That's what the technote says: use copy and paste.
Alternately you can use the "gear" popup menu in the build settings inspector to add the condition manually.
But yes, editing the project file directly is not generally recommended. In this specific case, you need to quote the left-hand-side of the assignment for the plist parser to properly parse the project file. But it's easier to go through the GUI.
-- Michael Rawdon email@hidden Xcode Developer Apple Inc., Cupertino CA
|
_______________________________________________
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