• 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
Different library per build configuration?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Different library per build configuration?


  • Subject: Different library per build configuration?
  • From: Rippit the Ogg Frog <email@hidden>
  • Date: Mon, 21 Sep 2009 19:56:37 -0700

Is the following even possible:

I'm building the ZooLib framework as a static library. There is a libzoo.a for the Debug build configuration, and another libzoo.a for the release build configuration. They're placed in the usual build products folders by Xcode:

build/
   Debug/
      libzoo.a
   Release/
      libzoo.a

Next I build an application - in this particular case it's a test harness. It has just one source file, and it links in libzoo.a.

If I include the Debug libzoo.a, and I build my test harness in debug mode, it works fine.

Now what I would like to do is to include the Release libzoo.a in my test harness, and link against that - but only when in Release mode.

What happens when I try is that one of the Instruction Set Architectures is missing from libzoo.a, because it links against the Debug library which was built with only one ISA.

I know that one solution would be to have two separate targets and build one only in Debug and the other only in Release. But it seems to me that there should be a better way.

(ZooLib is at http://www.zoolib.org/ - it's an Open Source cross-platform framework.)

Thanks for your help,

--
Rippit the Ogg Frog
email@hidden
http://www.oggfrog.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: Different library per build configuration?
      • From: Ken Thomases <email@hidden>
    • Re: Different library per build configuration?
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: XIB & 10.4
  • Next by Date: Re: Disappearing "This view is clipping its content." errors?
  • Previous by thread: Re: Missing Debugger Text Editor
  • Next by thread: Re: Different library per build configuration?
  • Index(es):
    • Date
    • Thread