• 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: Copying dependent frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying dependent frameworks


  • Subject: Re: Copying dependent frameworks
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 19 Apr 2008 19:26:20 -0700

On 2008 Apr, 16, at 14:31, Doug Hill wrote:

I'm trying to copy some dependent frameworks into my application bundle at build time.

In my Xcode project, I drag the the Xcode project for the dependent framework into my application Xcode project.

That would be correct. Put it in a folder named "Referenced Projects".

I then click the triangle and disclose the framework icon.

I don't understand which "framework icon" you mean.

I drag this into my Link Libraries build phase and into a Copy Files build phase. When I do the build it links OK, but fails in the Copy Files build phase. It seems to be wanting to copy the dependent frameworks from my Application build folder rather than the framework build folder.

You should be dragging the framework ^product^, into Link Libraries and Copy Files, as you did later...


Looking at the Framework Programming Guide, it says to drag the icon for the dependent framework from it's project Products folder to the Copy Files build phase in the Application project. This works but will only copy the Debug version of my dependent framework rather than the correct one for the configuration I'm building.

For me, it always copies Release. I asked about this a few weeks ago but never got a response. I concluded that this is just the way Xcode works and that somebody smarter than me had a reason for designing it that way.


So, I would greatly appreciate any hints, tips, or pointers to info on how to do this correctly. It seems like I could create a script to do this, and reference the correct configuration build folder using $CONFIGURATION, but I'd rather have a Copy Files build phase instead.

Nope. A script is what I ended up doing. In the process, I scatched a few other itches too...


http://sheepsystems.com/sourceCode/sourcecpframeworks.html

_______________________________________________
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: Copying dependent frameworks
      • From: Doug Hill <email@hidden>
References: 
 >Copying dependent frameworks (From: Doug Hill <email@hidden>)

  • Prev by Date: Ld -U (Undefined Symbols) argument is ignored?
  • Next by Date: Re: Ld -U (Undefined Symbols) argument is ignored?
  • Previous by thread: Copying dependent frameworks
  • Next by thread: Re: Copying dependent frameworks
  • Index(es):
    • Date
    • Thread