Xcode, building and dylibs

≡放荡痞女 提交于 2019-12-01 02:20:12

My workaround for this issue was to do the following in terminal (I've used Automator to, well, automate this):

install_name_tool -id @executable_path/../Frameworks/libmp3lame.0.0.0.dylib ~/path/to/lib/in/app/libmp3lame.0.0.0.dylib

install_name_tool -change /usr/local/lib/libmp3lame.0.dylib @executable_path/../Frameworks/libmp3lame.0.0.0.dylib ~/path/to/app/Contents/MacOS/AppName

Basically swapping the path to the library from the one in the usr local lib to the one included in the bundle.

My tip is to look at the build output, how does it actually run ld?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!