Re: Debug/Release framework linking in Xcode 2.1
Re: Debug/Release framework linking in Xcode 2.1
- Subject: Re: Debug/Release framework linking in Xcode 2.1
- From: Chris Silverberg <email@hidden>
- Date: Fri, 22 Jul 2005 15:26:27 -0700
I've run into this issue on multiple projects. There's really no
good solution. The work-around that I and others have come up with
is the following:
1) Setup your project to link against the Release framework. This
works fine as long as you aren't changing the framework API's much.
Anytime the API changes, you'll need to rebuild both Debug and
Release targets of your framework.
2) Remove the 'Copy Files' build phase that previously copied the
framework into your application
3) Add a shell script phase with the following snippit:
mkdir "${TARGET_BUILD_DIR}/MyApp.app/Contents/Frameworks"
if [ "${BUILD_STYLE}" == "Debug" ] ; then
cp -R ../MyFramework/build/Debug/MyFramework.framework "$
{TARGET_BUILD_DIR}/MyApp.app/Contents/Frameworks"
fi
if [ "${BUILD_STYLE}" == "Release" ] ; then
cp -R ../MyFramework/build/Release/SIPphone.framework "$
{TARGET_BUILD_DIR}/MyApp.app/Contents/Frameworks"
fi
This basically does the job. It's just not ideal because your debug
target links against the release framework. Perhaps there are ways
to work around that as well.
What we really need is a solution so that Xcode is smart about
embedding frameworks from other build directories. This has to be a
fairly common issue. Xcode 2.2 perhaps? :-)
-Chris
On Jul 22, 2005, at 2:24 PM, Eric Long wrote:
So... If I have a target in another project that links against the a
framework built in these variants, how do I link my target's debug
configuration to the debug framework and my release configuration
to the
release build of the framework? I can add to targets, but not
differentiate
between configurations?
_______________________________________________
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