• 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: Added Framework has a Configuration (Release/Debug) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Added Framework has a Configuration (Release/Debug) ?


  • Subject: Re: Added Framework has a Configuration (Release/Debug) ?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 19 Aug 2009 10:33:03 -0400
  • Organization: Rogue Research Inc.

On 8/18/09 5:27 PM, Jerry Krinock said:

>A year or more ago, there was a bug in Xcode -- it was unable to
>distinguish between the Release vs. Debug configuration of a private
>framework you had added to your project
>
> *snip*
>
>Now, first of all, how do you add such a framework to an app project?

I've had a similar problem ever since switching from CodeWarrior.  In my
case it's static libs, not frameworks, but it's the same general idea.
I have two different .a's (one debug and release) but there seems to be
no way to include different ones in different configurations (only in
different targets).  I filed this as <rdar://4194847> in 2005.

My workaround is to not include the libs in the project at all, and to
change target settings in my xcconfigs like so:

In my debug xcconfig:

LIBRARY_SEARCH_PATHS = $(inherited) $(3rdParty)/NetCDF/trunk/Debug/lib

In my release xcconfig:

LIBRARY_SEARCH_PATHS = $(inherited) $(3rdParty)/NetCDF/trunk/Release/lib

Then in both:

OTHER_LDFLAGS = $(inherited) -lnetcdf

You could do the same for frameworks.

____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

References: 
 >Added Framework has a Configuration (Release/Debug) ? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: NSZombieEnabled when running unit tests
  • Next by Date: Re: Double-clicking XIB files
  • Previous by thread: Re: Added Framework has a Configuration (Release/Debug) ?
  • Next by thread: Some simple questions I couldn't find answers to in the documentation
  • Index(es):
    • Date
    • Thread