Re: How to combine Mac and iPhone targets in one project?
Re: How to combine Mac and iPhone targets in one project?
- Subject: Re: How to combine Mac and iPhone targets in one project?
- From: Jocelyn Houle <email@hidden>
- Date: Wed, 17 Feb 2010 14:14:21 -0500
My experience with this is that Xcode is a little buggy when switching across platforms (iPhone vs. MacOSX).
What I do when I switch my Active Target across platforms, I explicitly select a valid Active SDK as well, then close the project and reopen it.
If I don't close/re-open, I usually end up with some compile errors due to Xcode keeping some settings from the other platform (and the "Use Base SDK" setting almost always gives me those issues). Re-opening a project file seems to clean things up (confirming this is indeed an Xcode bug).
I'm hoping an upcoming Xcode version will fix this minor annoyance.
On 2010-02-17, at 14:04, Jens Alfke wrote:
> Whee, it's my turn to ask a dumb newbie question: How do I combine Mac OS and iPhone targets in a single project file? I have several libraries that support both platforms, and I've been using separate project files to build them on each platform since that's the way it had to be done back in the day, but I've heard that Xcode 3.2 supports putting both in a single project.
>
> In Xcode 3.2 on OS X 10.6.2, I can use the New Target... assistant to add an iPhone static library target to my existing Mac project. But the SDK is still restricted to OS X 10.5 or 10.6, so it doesn't actually build it for iPhone. I can go into the project inspector and change the base SDK to an iPhone platform, but that forces my existing Mac targets to use the iPhone SDK.
>
> What am I missing? There's got to be a way to make different targets build for different platforms, right?
>
> —Jens _______________________________________________
> 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