Xcode 7 unable to find .dylib 没有现成的解决方案对我有用

Xcode 7 unable to find .dylib no existing solution is working for me

没有适合我的现有解决方案,你能帮忙吗?我删除了引用并在构建阶段再次添加了 .dylib(Link 库),添加了其他链接器标志(-lz -lsqlite3)但没有任何效果。

这是错误:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: 无法打开文件: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS .platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libsqlite3.dylib(没有那个文件或目录)

对于之前不完整的回答,我们深表歉意。

解决方案:

我在错误的地方应用了现有的解决方案!!!

问题出在 facebook sdk 中... 删除 libsqlite3.dylib 的引用(facebook sdk > Targets > Build Phase > link library)[同时从项目导航中删除引用]

在 facebook sdk > Targets > Build Settings > other linker flags

添加“-lsqlite3”

如果您遇到任何 linker 错误,请转至您的应用程序(目标)构建设置 > 启用位码 > 否。(在 Xcode 7 中默认为是)