Re: Linking debug/release app with debug/release framework?
Re: Linking debug/release app with debug/release framework?
- Subject: Re: Linking debug/release app with debug/release framework?
- From: Paul Cezanne <email@hidden>
- Date: Thu, 04 May 2006 13:42:53 -0400
- Thread-topic: Linking debug/release app with debug/release framework?
Hello
I have a framework that I've built and I use in several applications. It is
a private framework however so I do not install it anywhere. The
applications copy it to their own bundle.
I'm converting to Xcode 2.2 (from 1.1, don't ask!) and I bumping up against
the build configurations issue. I want the Debug applications to use the
Debug framework and the Release applications to use the Release framework.
This issue seems to have generated a lot of messages in the archives, but
I've not found a solution yet. I'm hoping that someone here has had the same
problem and can share their solution.
I can't claim to have read all the message in the archives all but this
message from Chris Espinosa seems to imply that what I am doing is wrong.
http://lists.apple.com/archives/xcode-users/2006/Jan/msg00941.html
The problem is that I do not have a shared build folder. I really can't do
that. The framework is delivered to customers along with a sample
application as well as being used in our other products. There is no one
common folder I can say that everyone uses.
Here's how I built my application's project. I dragged the framework's
.xcodeproj file into the application's Groups and Files folder, adding it to
the application Target. I then open the Target and made the framework target
a Direct Dependency.
I then flip the disclosure triange down in from the framework's project,
select the .framework file and then click the checkbox so it is added to the
application target. (When I do this my framework is added to the 'Link
Binary with Libraries' Build Phase, as expected.)
If I build now my application it fails to run successfully. You see, there
is no Frameworks folder in its bundle. (If I manually copy the correct
.framework in, my app runs fine.)
So I added a Copy Build Phase, set the destination to Frameworks, and
dragged the .frameworks file to it from the flipped down triangle above.
When I build this it fails with a PBXCp error. PBXCp is looking in the
application's build area, not in the framework's build area for the
.framework folder.
How can I get this to work? Thanks for any help.
Paul
_______________________________________________
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