• 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: Debug/Release framework linking in Xcode 2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Debug/Release framework linking in Xcode 2.1
      • From: Eric Long <email@hidden>
References: 
 >Debug/Release framework linking in Xcode 2.1 (From: Eric Long <email@hidden>)

  • Prev by Date: Re: Debug/Release framework linking in Xcode 2.1
  • Next by Date: Re: Fwd: Error linking in Xcode 2.1 (undefined symbols in libSystem)
  • Previous by thread: Re: Debug/Release framework linking in Xcode 2.1
  • Next by thread: Re: Debug/Release framework linking in Xcode 2.1
  • Index(es):
    • Date
    • Thread