• 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: Can't tell build configurations to use different libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't tell build configurations to use different libraries


  • Subject: Re: Can't tell build configurations to use different libraries
  • From: Rush Manbert <email@hidden>
  • Date: Thu, 18 Aug 2005 08:37:55 -0700

I believe you can do this by putting the debug and release library versions in different directories, then specifying different library load paths for each configuration. Of course, installing the libraries in different places is another headache to deal with... :-)

- Rush

Starman wrote:

Hi all,
I'm porting a project from CW and I'm having a bit of trouble with one last issue. I'm trying to separate debug and release builds using "Build Configurations" which has gone well so far. The problem is this: I can't seem to tell the different build configurations to use different external libraries to link with. For example, in my debug build, I want to link in the debug libs, and in the release build I want to link in the release libs. If I drag the debug and release libs into "External Frameworks and Libraries", Xcode tries to be smart and link in both. If I click on the "External Frameworks and Libraries" folder and turn a lib off for one config, it stays off for both configs. I can't seem to figure out how to tell Xcode "use the release lib for the release build only", and the same for debug.
So then I tried using different targets. The problem with that is if you're changing targets, you have to also change configs or else your debug and release build will go in the same directory. If I try to change the name of the executable (in this case, a printer PDE), the PDE doesn't load because the Info.plist file requires that <CFExecutable> and <CFBundle> be the same name as the project. I can only change the <CFExecutable> string in the target's Properties menu, so <CFBundle> doesn't change and the PDE doesn't load.
Bottom line is this - how can I tell two different configs with one target to link in different libraries? Thanks.
Mike


_______________________________________________
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: Can't tell build configurations to use different libraries
      • From: Dave Thorup <email@hidden>
References: 
 >Can't tell build configurations to use different libraries (From: "Starman" <email@hidden>)

  • Prev by Date: Re: How to get details of link errors with Xcode?
  • Next by Date: Re: Xcode 2.1 locking up immediately
  • Previous by thread: Can't tell build configurations to use different libraries
  • Next by thread: Re: Can't tell build configurations to use different libraries
  • Index(es):
    • Date
    • Thread