• 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: Development and Deployment linking to libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Development and Deployment linking to libraries


  • Subject: Re: Development and Deployment linking to libraries
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 3 Sep 2008 08:53:51 -0600


On Sep 3, 2008, at 5:24 AM, Bengt Nilsson wrote:

I want to link my project to libproj/build/Development/mylib and libproj/build/Deployment/mylib.
The libs are debug and release versions.
How do I make the distinction when I introduce the libs into my project?


First, make sure you turn on the "place build products in customized location" preference in Xcode. By default the built products go into a "build" directory, but if you're working with multiple projects, then you need to have a single build location to do what you want to do.

Second, instead of linking the library to the project directly, add the library's project into the application's project (you can do this by dragging the library's project bundle from the Finder into the application project). Then, as long as you keep the configuration names the same between the projects, Xcode will link the application to the library in the corresponding build configuration.

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request




_______________________________________________ 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: Development and Deployment linking to libraries
      • From: <email@hidden>
References: 
 >Development and Deployment linking to libraries (From: Bengt Nilsson <email@hidden>)

  • Prev by Date: TraceEventByName on Leopard
  • Next by Date: Re: Development and Deployment linking to libraries
  • Previous by thread: Development and Deployment linking to libraries
  • Next by thread: Re: Development and Deployment linking to libraries
  • Index(es):
    • Date
    • Thread