• 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
Build styles and project dependencies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build styles and project dependencies


  • Subject: Build styles and project dependencies
  • From: David Catmull <email@hidden>
  • Date: Tue, 5 Apr 2005 17:22:47 -0700

The basic question: can I make a project link to different versions of a library depending on the build style?

I'm converting a set of projects from CodeWarrior to XCode: two application projects, and several library projects that are used by both apps.

In CW, each project has a debug target and a final target, and the app project targets link to the appropriate debug/final versions of the libraries.

So in converting to XCode, I naturally used build styles instead of separate targets. For the Development style, I set the Executable Prefix to "libDebug" so that my Core library project generates libCore.a and libDebugCore.a, depending on the build style. I manually added libDebugCore.a to the project's Products group so that everything looks right (shouldn't XCode do this automatically?).

The first thing that looked wrong was when I added Core.xcode to an application project, the disclosure triangle only reveals libCore.a.

So how do I get the application projects to link to the correct libraries depending on the build style? Is this possible, or will I have to resort to separate targets, or is there another approach?

This is with XCode 1.5, OS X 10.3.8.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
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


  • Prev by Date: [ANN]: Xcode and more at WWDC this year
  • Next by Date: Re: xcodebuild FRAMEWORK_SEARCH_PATHS
  • Previous by thread: [ANN]: Xcode and more at WWDC this year
  • Next by thread: Xcode 1.5 and debugger
  • Index(es):
    • Date
    • Thread