Re: dyld: (No such file or directory, errno =2)... But the file/directory is there... Why am I still getting this?
Re: dyld: (No such file or directory, errno =2)... But the file/directory is there... Why am I still getting this?
- Subject: Re: dyld: (No such file or directory, errno =2)... But the file/directory is there... Why am I still getting this?
- From: Fritz Anderson <email@hidden>
- Date: Wed, 19 Oct 2005 12:10:29 -0500
On 19 Oct 2005, at 6:39 AM, Mark Grob wrote:
I keep getting this error when trying to run my .app outside of Xcode:
dyld: /VRengine/example/VREngine1a OSX.app/Contents/MacOS/VREngine
Debug OSX can't open library: libisense.dylib (No such file or
directory, errno = 2)
The application runs in Debug and Release as long as I run it
within xCode. As soon as I try to run it as a .app outside of Xcode
I get this error. I have made sure that the dylib is in the bundled
app resources location and in the same directory as the .app itself
and it still passes this error.
Settings in xCode:
I have the libisense.dylib set as relative to the project build
location. Why do it still do the error above?
Dynamic libraries in Mac OS X are sought in two (kinds of) places:
- In the installation directory specified in the .dylib binary, which
the host application picks up from when it linked against the .dylib.
- In /Library/Frameworks, ~/Library/Frameworks, etc., as default
fallback locations.
When you launch an application inside Xcode, an additional search
path is added:
- The directory that contains the application.
This is done as a convenience for the developer, as of course only a
barbarian would require users to maintain separate files in the same
directories as the applications. The result would be that
applications that launch from Xcode won't launch stand-alone.
So my questions:
* What _exactly_ have you specified for the installation directory of
the .dylib? Is it an executable-relative path like
@executable_path/../Frameworks? "I have the libisense.dylib set as
relative to the project build location," doesn't make clear what has
been set, installed, or whatnot.
* Where _exactly_ have you placed the .dylib file?
* Are you packaging the .dylib in a framework? Just curious.
-- F
_______________________________________________
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