• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to combine Mac and iPhone targets in one project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to combine Mac and iPhone targets in one project?


  • Subject: Re: How to combine Mac and iPhone targets in one project?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 18 Feb 2010 10:48:31 -0800

Jocelyn gave me some clues that helped me figure it out. The key thing is that any iPhone target's "Base SDK" build setting has to be set to one of the iPhone SDKs. Which sounds obvious; but if you create an iPhone static-library target, that setting is not defined, so it defaults to the project's base SDK, which in this case is Mac OS.

(Creating an iPhone app target does set an appropriate value for Base SDK, so I think this is a mistake in Xcode's iPhone static-library target template.)

Once you have targets with both iPhone and Mac base SDKs, Xcode's UI will start allowing you to choose from both sets of SDKs.

—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

References: 
 >How to combine Mac and iPhone targets in one project? (From: Jens Alfke <email@hidden>)
 >Re: How to combine Mac and iPhone targets in one project? (From: Jocelyn Houle <email@hidden>)
 >Re: How to combine Mac and iPhone targets in one project? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using different compilers for C vs C++?
  • Next by Date: Misc Build options
  • Previous by thread: Re: How to combine Mac and iPhone targets in one project?
  • Next by thread: copy 'Run script build phase' to another project
  • Index(es):
    • Date
    • Thread