• 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: Problem Embedding Cocoa Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem Embedding Cocoa Framework


  • Subject: Re: Problem Embedding Cocoa Framework
  • From: George King <email@hidden>
  • Date: Wed, 6 May 2009 18:31:15 -0700

Nick, thanks for the tip, you set me on the right track. Here is my new understanding of the problem. In my framework target settings, the Dynamic Library Install Name is set to:

$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)

This is for both Debug and Release. However these expand to different things for debug and release:

Debug: @executable_path/../Frameworks/libxml.framework/Versions/2.7.3/ libxml
Release: /Frameworks/libxml.framework/Versions/2.7.3/libxml


Is there some good logic behind this difference? Should I just replace $(DYLIB_INSTALL_NAMEBASE:standardizebasepath) with @executable_path/../ Frameworks? This works, but I'm curious if there is a more standard / graceful way of doing this.

Lastly, what about @rpath? I read that this is the fancy new way to do it in Leopard. Just replacing @executable_path with @rpath didn't work. Do I need some other linker flag on the application side?

Thanks for all your help. I realize that perhaps these Build Settings questions should go to the Xcode list instead.

- George


On May 6, 2009, at 5:25 PM, Nick Zitzmann wrote:


On May 6, 2009, at 6:13 PM, George King wrote:

Can anybody suggest a solution, or at least a next step for debugging this problem?


Try searching around for information about @executable_path and @loader_path.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Problem Embedding Cocoa Framework
      • From: Nick Zitzmann <email@hidden>
    • Re: Problem Embedding Cocoa Framework
      • From: Marcel Weiher <email@hidden>
References: 
 >Problem Embedding Cocoa Framework (From: George King <email@hidden>)
 >Re: Problem Embedding Cocoa Framework (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Create disk image files
  • Next by Date: Re: Integer as key in NSMutableDictionary
  • Previous by thread: Re: Problem Embedding Cocoa Framework
  • Next by thread: Re: Problem Embedding Cocoa Framework
  • Index(es):
    • Date
    • Thread