I’m developing a Mac OS X Cocoa app and want to use several .dylib libraries. How do I set the path to a .dylib which resides somewhere in my Application folder? What if the path resides in different directories on different computers or is not existent at all?
Share
Use
@rpath. (or@executable_path.) Seeman 1 dyld.Then your app will fail to load. Use weak linking or load the dylib at runtime with
dlopenif the dylib is not essential.