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: Roland King <email@hidden>
- Date: Wed, 23 Jun 2010 19:17:05 +0800
yes I'm stuck on something very similar.
I have a project which started life as iOS (back in 3.1.x) and I added a Command Line tool target to it, set the Base SDK for that to OS X 10.6 and it's been working fine, it used to be that at the top of the build selection dropdown you had an 'active SDK' selection, and I had to pick OS X 10.6 and all would be well.
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
"target specified product type 'com.apple.product-type.tool' but there's no such product for the 'iphoneos' platform" (or iphonesimulator platform, depending on what I was last building the iOS target for).
I've gone from the master project settings down and fiddled with things at that level (mostly removing things) and at the Target level, where Base SDK is set appropriately for each of the different targets, OS X 10.6 for my Command Line tool.
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.
If I fiddle with any more settings I'm going to break the iOS piece of my project pretty soon.
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.
Roland
On 23-Jun-2010, at 5:47 PM, 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.
>
> Is this a bug in Xcode 3.2.3, or am I doing something wrong with my project setup? I'm pretty sure I have not changed any project configuration since Xcode 3.2.2 which was working fine. I did update the iOS targets to target iOS 4, that's the only change.
>
> I guess it is not all that common to have a single project targetting multiple OS's, but it is useful to be able to do. The application I am working on shares all it's code between the platforms except for user interface, so having a single project is very useful. I'm a bit concerned that someone is going to say that this is not a supported feature of Xcode, but it does seem to be a useful feature. I guess the alternative is to have separate projects for each target and a dependent project for the shared code. I could move to something like that, but it would be quite a big change.
>
>
> Jason _______________________________________________
> 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
_______________________________________________
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