Re: SenTests, Frameworks and .dylibs
Re: SenTests, Frameworks and .dylibs
- Subject: Re: SenTests, Frameworks and .dylibs
- From: Chris Hanson <email@hidden>
- Date: Thu, 07 Aug 2008 07:32:22 -0700
On Aug 7, 2008, at 6:47 AM, Alan Shouls wrote:
- added a copy files phase to put the .dylib next to the 'Test'
executable in the test bundle.
When I run I get an error that "@ececutable_path/MyLib.dylib" was
not loaded
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.
-- 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