dylib @executable_path path issue in a plug-in bundle
问题 I am developing a plug-in bundle , say MyPlugIn.bundle for an application , say BigApp.app . This bundle requires a dylib , say MyPlugIn.bundle/Contents/Resources/library.dylib . I have relocated paths for library.dylib, as I would have done for a simple application bundle: $ otool -L MyPlugIn.bundle/Contents/MacOS/MyPlugIn MyPlugIn.bundle/Contents/MacOS/MyPlugIn: @executable_path/../Resources/library.dylib (compatibility version 0.0.0, current version 0.0.0) [...] $ otool -L MyPlugIn.bundle