PDA

View Full Version : executable_path




MrFusion
Dec 25, 2008, 06:45 AM
Hi everyone,

vacation time = messing around with cocoa

I am trying once more to get embedded frameworks to work.
I was wondering if $executable_path/../Frameworks is still correct. Or that the online forums are a bit outdated, and that "executable_path" has been changed with another keyword.

I know that my framework is copied into the Frameworks path of my app bundle, but the app is still complaining that the library can not be found.

dyld: Library not loaded: $executable_path/../Frameworks/MyFramework.framework/Versions/A/MyFramework
Referenced from: /Users/useraccount/Developer/MyApp/build/Debug/MyApp.app/Contents/MacOS/MyApp
Reason: image not found

The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).



Enjoy the holidays.



Catfish_Man
Dec 25, 2008, 09:53 AM
I believe it's @executable_path

MrFusion
Dec 25, 2008, 11:39 AM
I believe it's @executable_path

and so it is...

Thanks!