您的位置:首页 > 移动开发

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtoo

2015-12-21 15:11 393 查看
因为一个错误困扰了许久 记录下解决办法:

错误如下

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libsqlite3.tbd is not an object file (not allowed in a library)。

错误原因可能是 项目在Xcode7.1 上运行 对于老版本的libsqlite.dylib 不能适应新的lisqlite3.tbd 可以在你添加 .tbd之后 点开文件 在开头找到类似user/libsqlite...这样的路径 复制下来。

再 点击add other 去添加后缀是.dylib文件 方法 点开add other之后再按Command + shift + g 前往复制地址的那个文件夹 添加.dylib 文件,再编译就能通过了。 (记得移除掉.tbd 文件)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: