Re: Single Project with Mac and iPhone targets
Re: Single Project with Mac and iPhone targets
- Subject: Re: Single Project with Mac and iPhone targets
- From: Jocelyn Houle <email@hidden>
- Date: Wed, 23 Jun 2010 07:57:52 -0400
On 2010-06-23, at 05:47, Jason Swain wrote:
> I have a single project that has multiple targets, some for OS X and some for iOS. This all worked fine until Xcode 3.2.3. Now when I select an OS X target the architectures do not update to i386, x86_64 etc, they remain on arm6, arm7. This means I cannot compile my OS X project any more.
(...)
On 2010-06-23, at 07:17, Roland King wrote:
> Now that selection has gone (and similarly the Project->Select Active SDK dropdown just has one greyed-out Base SDK) and if I try to select my Command Line Tool target and build it I get
(...)
> It seems that a switch from target to target isn't switching the Base SDK, it 'sticks' at whatever the previous iOS thing I built was, is always iphoneos or iphonesimultaor, and I can no longer select it explicitly.
(...)
> Help!! What else can I look at here? I'm sure I've checked every setting from the project build settings down but .. it's not happening.
I spent half a day yesterday isolating changed behavior to get our common OSX/iOS project files to work again.
Here are the basic ingredients of the secret sauce:
* The Active SDK dropdown (a.k.a. Overview) will show all of the SDKs if you hold Option when you click.
* We use "SDKROOT = iphoneos4.0" for iOS and "SDKROOT = macosx10.6" for OSX.
* Our .xcconfig conditional variables no longer accepted wildcards, for example:
MY_VAR[sdk=iphonesimulator*] = my_first_value
MY_VAR[sdk=iphoneos*] = my_second_value
no longer worked (MY_VAR was empty), so we replaced it with the full SDK names:
MY_VAR[sdk=iphonesimulator4.0] = my_first_value
MY_VAR[sdk=iphoneos4.0] = my_second_value
I was very close to converting everything into separate projects, but the above modifications made things work again.
Hopefully, this will be useful to other people...
Oh, also, when switching from an OSX target to an iOS target, its seems we no longer need to close/reopen the project file, so I'd say there was some improvement in the way Xcode switches SDK.
_______________________________________________
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