• 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: Radar issues (Re: How to file a radar)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Radar issues (Re: How to file a radar)


  • Subject: Re: Radar issues (Re: How to file a radar)
  • From: Mike Jackson <email@hidden>
  • Date: Wed, 19 Jul 2006 21:52:25 -0400


On Jul 19, 2006, at 8:41 PM, Marshall Clow wrote:

At 5:15 PM -0700 7/19/06, Chris Hanson wrote:
On Jul 19, 2006, at 12:58 PM, Ben Weiss wrote:

The lack of support for separate debug/release libraries is another major headache. I worked with some Apple engineers to hack around this at the last WWDC, and I'm surprised it hasn't been addressed yet...

What do you mean by "separate debug/release libraries"?

Well, what _I_ mean is to have two static libraries - a debug and a release version
and have the release version of my app link against the release version of the library,
and the debug version link against the debug version.


Usually, the libraries are named "SomeLibrary.a" and "SomeLibrary Debug.a",
but that's not a hard and fast rule.


Also, I have source files/libraries that I want included in the debug version, and not at all in the release version.

--
-- Marshall

Marshall Clow     Idio Software   <mailto:email@hidden>

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.

I tried to follow this thread so I am sure I am just missing something BUT if you don't fight Xcode then you can very easily have Debug and Release builds without a lot of work. In fact it is very little work.


Suppose I have a project that has a base library called "libBase.a", and an executable that depends on that library.

So setup an Xcode project to build the Library. Now in the same Xcode project, create a new Target that will be your executable. Have your executable link against the library that was built in your first target. Set the executable target to have a dependancy on the Library. Now, when you set the build type to "Debug" then Xcode will make sure that Library is built with the Debug settings and place the built library in {XcodeBuildLocation}/Debug/libBase.a and place the executable in {XcodeBuildLocation}/Debug/MyApp.exe
When you are ready for a Release version simply change the build type to "Release" and build. The base lib will be built in release mode, the executable will be built in Release mode, and both will be place in {XcodeBuildLocation}/Release/.


How much simpler can this possibly be. On other systems you have to do weird things like naming each built product with "_debug.a" or some other weird things. Xcode will do the right thing with release and Debug. You just have to make the project dependancies for it to work.

Peace.
--------
Mike Jackson
imikejackson <at> gmail <dot> 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
  • Follow-Ups:
    • Re: Radar issues (Re: How to file a radar)
      • From: Marshall Clow <email@hidden>
References: 
 >Re: [ANN] Xcode + Leopard at WWDC this year (From: "Andy O'Meara" <email@hidden>)
 >Re: [ANN] Xcode + Leopard at WWDC this year (From: Laurence Harris <email@hidden>)
 >Re: [ANN] Xcode + Leopard at WWDC this year (From: Adrian Hoe 贺文耀 <email@hidden>)
 >OT: How to file a radar WAS Re: [ANN] Xcode + Leopard at WWDC this year (From: Chris Forsythe <email@hidden>)
 >Re: OT: How to file a radar WAS Re: [ANN] Xcode + Leopard at WWDC this year (From: Adrian Hoe 贺文耀 <email@hidden>)
 >Re: OT: How to file a radar WAS Re: [ANN] Xcode + Leopard at WWDC this year (From: Syd Polk <email@hidden>)
 >Re: OT: How to file a radar WAS Re: [ANN] Xcode + Leopard at WWDC this year (From: Adrian Hoe 贺文耀 <email@hidden>)
 >Re: OT: How to file a radar WAS Re: [ANN] Xcode + Leopard at WWDC this year (From: Chris Espinosa <email@hidden>)
 >Re: OT: How to file a radar (From: Markus Hitter <email@hidden>)
 >Re: OT: How to file a radar (From: "Finlay Dobbie" <email@hidden>)
 >Re: Radar issues (Re: How to file a radar) (From: Laurence Harris <email@hidden>)
 >Re: Radar issues (Re: How to file a radar) (From: Ben Weiss <email@hidden>)
 >Re: Radar issues (Re: How to file a radar) (From: Chris Hanson <email@hidden>)
 >Re: Radar issues (Re: How to file a radar) (From: Marshall Clow <email@hidden>)

  • Prev by Date: Re: Radar issues (Re: How to file a radar)
  • Next by Date: Re: [ANN] Xcode + Leopard at WWDC this year
  • Previous by thread: Re: Radar issues (Re: How to file a radar)
  • Next by thread: Re: Radar issues (Re: How to file a radar)
  • Index(es):
    • Date
    • Thread