Re: Added Framework has a Configuration (Release/Debug) ?
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