Re: Creating multiple targets in Xcode 5?
Re: Creating multiple targets in Xcode 5?
- Subject: Re: Creating multiple targets in Xcode 5?
- From: Quincey Morris <email@hidden>
- Date: Fri, 20 Dec 2013 13:52:53 -0800
On Dec 20, 2013, at 12:56 , Carl Hoefs <email@hidden> wrote:
I have an Xcode 5 project that needs to create similar versions of the same Foundation tool (OS X 10.8.5) from the same code base. I just need a DEFINE set differently, and a different binary file generated. What is the procedure for creating multiple targets (products?) in Xcode 5? It must be so obvious that they didn't think it necessary to document it...
It’s *pretty* obvious. Click on the project entry in the left pane, then select your existing target in the list in the editing pane. Use Command-D or right-click to Duplicate the target.
In the new target, choose the Build Settings tab, and scroll down until you find the Preprocessor Macros section (or use the search file to find it faster). If you can, use the “Preprocessor Macros Not Used in Precompiled Headers” setting, to maximize PCH sharing. Create a new setting for your new target, and enter something of the form MacroName=value.
|
_______________________________________________
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