• 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: Linking debug/release app with debug/release framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Linking debug/release app with debug/release framework?


  • Subject: RE: Linking debug/release app with debug/release framework?
  • From: "David Litwin" <email@hidden>
  • Date: Thu, 4 May 2006 11:05:35 -0700
  • Thread-topic: Linking debug/release app with debug/release framework?

Yeah, you can't get around the shared build location issue. I tried as
well (with shared libraries) but it's just something XCode needs.

Try a run script phase instead of a copy build phase to copy your
framework from the shared location into your app bundle.  I use the run
script as opposed to the copy build phase as I had some other script
work to do as well.  I use:
cp $CONFIGURATION_BUILD_DIR/<my shard lib>
$CONFIGURATION_BUILD_DIR/$EXECUTABLE_FOLDER_PATH
but I want my shared lib next to the app.  You may have to use some
other value if you want it in a "Frameworks" folder.

David Litwin
BigFix, Inc.

-----Original Message-----
From: xcode-users-bounces+david_litwin=email@hidden
[mailto:xcode-users-bounces+david_litwin=email@hidden] On
Behalf Of Paul Cezanne
Sent: Thursday, May 04, 2006 10:43 AM
To: email@hidden Users
Subject: Re: 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:
.com

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

  • Prev by Date: Re: Linking debug/release app with debug/release framework?
  • Next by Date: Re: IDE/ Command Line - failing on ignored return value
  • Previous by thread: Re: Linking debug/release app with debug/release framework?
  • Next by thread: say, what happened to prefix files?
  • Index(es):
    • Date
    • Thread