• 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: Chicken & egg situation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chicken & egg situation


  • Subject: Re: Chicken & egg situation
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 26 Jun 2008 14:19:51 -0700

On Jun 26, 2008, at 9:12 AM, Timothy Reaves wrote:

    The issue is that the CustomControl.ibplugin bundle needs to
reference the framework too. This leads to all kinds of issues, but
basically the ibplugin bundle can't load, saying it can't load the
library at @executable_path/../frameworks/(the rest of the path).

Use an @rpath-relative install name in the framework, and then set the "Runpath Search Paths" build setting in anything that *links against* that framework to contain a collection of locations where that framework may be found.


More information on @rpath is in the dyld release notes and in the ld64 man page:

  x-man-page://1/ld64
  http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/ld64.1.html
  http://developer.apple.com/releasenotes/DeveloperTools/RN-dyld/index.html

ld64 is the primary linker on Mac OS X 10.5 and later.

    Another issue is build order; the framework needs to include the
ibplugin bundle so that IB will automagically find & load it, and the
ibplugin needs the framework.

*) to get around the build order issue, do I have to resort to adding
another target that copies the varies pieces to the correct location?

The IB plug-in could just have a Copy Files build phase at the end of its build phases that embeds it within its framework.


  -- Chris

_______________________________________________
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: 
 >Chicken & egg situation (From: "Timothy Reaves" <email@hidden>)

  • Prev by Date: Re: .jpg to .icns?
  • Next by Date: Interface Builder - Deleting Menus
  • Previous by thread: Re: Chicken & egg situation
  • Next by thread: Interface Builder - Large Fonts
  • Index(es):
    • Date
    • Thread