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

Re: adding frameworks


  • Subject: Re: adding frameworks
  • From: Pierre Chatel <email@hidden>
  • Date: Tue, 18 Jan 2005 13:38:07 -0500

Thanks for your quick answer. This is what i was looking for, now it's working !
Btw, i don't understand that external frameworks dropped in the Frameworks group of the target are not automatically copied to the executable bundle (not talking about Cocoa.framework or similar)...


My 2 cents :-)


On 18 janv. 05, at 00:10, Nick Zitzmann wrote:


On Jan 17, 2005, at 9:04 PM, Pierre Chatel wrote:

when i add a framework to my project (by drag-and-dropping it to the "Groups & File panel) it is automatically added to the "Frameworks and Libraries" group in the Target. But when i try to run the application it exits with a dyld error :(...)/build/xxx.app/Contents/MacOS/xxx can't open library: @executable_path/../Frameworks/yyy.framework/Versions/2.0/yyy (No such file or directory, errno = 2)

So how to tell xcode to copy the framework to the build product ?

Add a "copy files" build phase to the target, and drag the framework from the list of files in the project into the build phase. Don't forget to set the phase's destination in its info panel.


Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request



_______________________________________________ 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
References: 
 >adding frameworks (From: Pierre Chatel <email@hidden>)
 >Re: adding frameworks (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Carbon with UNIX
  • Next by Date: Can I debug a .app in XCode?
  • Previous by thread: Re: adding frameworks
  • Next by thread: Re: adding frameworks
  • Index(es):
    • Date
    • Thread