Re: Including different debug and release frameworks in a .app
Re: Including different debug and release frameworks in a .app
- Subject: Re: Including different debug and release frameworks in a .app
- From: Shawn Erickson <email@hidden>
- Date: Mon, 25 Jan 2010 12:21:23 -0800
On Mon, Jan 25, 2010 at 8:56 AM, Dan Korn <email@hidden> wrote:
> On Jan 21, 2010, at 4:37 PM, Sean McBride wrote:
>> Hi all,
>>
>> Perhaps I am just unable to find the right docs, but...
>>
>> I have a 3rd party .framework that I need to link to and include in
>> my .app. I have no source, just a debug .framework and a
>> release .framework. How do I include the Debug one in my Debug build
>> and the Release one in my Release build?
>>
>> For static libs, I've used OTHER_LDFLAGS to specify -lfoo and used
>> different LIBRARY_SEARCH_PATHS per configuration to get at the right
>> one. I can do similar to link the right framework, but how can I
>> conditionally include the right one in my .app itself?
>
> Use separate Debug and Release targets in your project, instead of separate configurations.
IMHO it is far easier to write a little shell script, that does the
selective copying, in a shell script phase then having to create
another target.
-Shawn
_______________________________________________
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