Re: conditional settings based on architecture -- broken?
Re: conditional settings based on architecture -- broken?
- Subject: Re: conditional settings based on architecture -- broken?
- From: Andy O'Meara <email@hidden>
- Date: Tue, 6 Apr 2010 16:42:17 -0500
Ah, thanks Chris -- that was it!
FYI, I've updated my file radar:
/////
When the Q&A says "the above can be cut-and-pasted...", it means it should be pasted into the project's build settings *window* not the project file (project.pbxproj). Upon doing this, it's now clear the parse problem was because lvalues in the project.pbxproj file with a conditional suffix need to be in quotes.
This would have been noticeable, but in the 'Xcode Build System Guide' in the 'Conditional Build Settings' section, there is *no* mention of the above.
Suggestion action:
Augment the content in the 'Conditional Build Settings' section to say that (a) conditional items need to be in double quotes if the project.pbxproj file is edited and (b) conditional settings should normally be inserted by pasting into the settings *window*, not the project.pbxproj file.
/////
On Apr 6, 2010, at 4: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.
>
> Chris
_______________________________________________
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