• 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: SenTests, Frameworks and .dylibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SenTests, Frameworks and .dylibs


  • Subject: Re: SenTests, Frameworks and .dylibs
  • From: Alan Shouls <email@hidden>
  • Date: Fri, 8 Aug 2008 13:51:13 +0100

Hi Chris,

If you can, use @loader_path or @rpath rather than @executable_path. The @executable_path element is always expanded to the path of the running executable -- otest -- rather than whatever module loads the library in question. The @loader_path element is expanded to what actually loads the library, and @rpath gives you fine-grained control over the expansion (whatever is doing the linking can supply a set of paths to search).

@loader_path is supported back to Mac OS X 10.4, and @rpath is new in Mac OS X 10.5.

Thanks for the reply - it has really helped me understand what is going on. The problem is a funny one as our framework and main app both link against the dylib.


Alan

_______________________________________________
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: 
 >SenTests, Frameworks and .dylibs (From: Alan Shouls <email@hidden>)
 >Re: SenTests, Frameworks and .dylibs (From: Chris Hanson <email@hidden>)

  • Prev by Date: pragma to ensure link order
  • Next by Date: gcc 4.2 not the default?
  • Previous by thread: Re: SenTests, Frameworks and .dylibs
  • Next by thread: Linked Libraries: debug vs. release and Direct Dependencies
  • Index(es):
    • Date
    • Thread