install-name-tool does not add path to library when viewed through otool?

淺唱寂寞╮ 提交于 2019-12-04 15:16:24

libosg.141.dylib is a dylib that you're including in your built app.

You should actually look in your app's binary... that is:

otool -L /Users/Guest/project_XCODE/bin/Release/project2.app/Contents/MacOS/project2

As for resetting the path of the library to point to "@executable_path/../Frameworks/libosg.141.dylib" instead of the dylib in "/usr/local/lib", try doing this:

install_name_tool -change libosg.141.dylib @executable_path/../Frameworks/libosg.141.dylib /Users/Guest/project_XCODE/bin/Release/project2.app/Contents/MacOS/project2
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!