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: Mark Suman <email@hidden>
- Date: Thu, 21 Jan 2010 16:27:08 -0700
I believe the variable you're looking for is ENV['CONFIGURATION']. Use that in your Run Script phase and you'll be able to determine which framework to copy.
Mark
On Thu, Jan 21, 2010 at 4:20 PM, Ken Thomases
<email@hidden> wrote:
On Jan 21, 2010, at 4:37 PM, Sean McBride wrote:
> 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?
You can use a run-script build phase to copy the appropriate framework into the app bundle. It can base its behavior on the build settings, which you can arrange to have passed into it as environment variables. (As I recall, that's the default.)
Cheers,
Ken
_______________________________________________
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
_______________________________________________
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