xocde7下导入libsqlite3.tbd编译报错的解决办法

在xocde7下没有libsqlite3.dylib,只有libsqlite3.tbd,然后我导入了tbd。编译报错
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)。

 

 

 

解决办法:

I found the solution here: https://forums.developer.apple.com/thread/4572

To summarize:

Remove the libz.tbd file from the Libraries and Frameworks area.
Edit your build settings for Other Linker Flags add "-lz"
It isn't ideal because it bypasses the GUI for managing the linked libraries in your project, but it works.

转自stack  Overflow 

posted @ 2016-02-04 15:02  七枷社  阅读(1513)  评论(0编辑  收藏  举报