• 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
Compiling Files Only in One Configurations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling Files Only in One Configurations


  • Subject: Compiling Files Only in One Configurations
  • From: Salman Khilji <email@hidden>
  • Date: Thu, 25 Aug 2011 01:06:58 -0700

I am using Xcode 4.1.  I have a project that has two configurations: Debug and Release.

I'd like to compile a slightly different set of files in both configurations.  Say, Foo_Debug.cpp in Debug, and Foo_Release.cpp in the Release configuration.

How do I set up Xcode to do this?  The problem is that if you have a single target with two configurations, the "Compile Sources" under "Build Phases" is still shared between the two configurations.  There is no way to essentially specify that a particular file be built into the target only for a particular configuration.

One can create two targets in the project, say myapp_debug and myapp_release; however, doing so creates a maintenance headache that the user has to maintain two entire separate sets of files to compile, most of which are exactly the same except for one file that is different in the two configurations.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Compiling Files Only in One Configurations
      • From: Hamish Allan <email@hidden>
  • Prev by Date: Re: C++ compiler isn't being used
  • Next by Date: Re: Compiling Files Only in One Configurations
  • Previous by thread: Re: C++ compiler isn't being used
  • Next by thread: Re: Compiling Files Only in One Configurations
  • Index(es):
    • Date
    • Thread