错误:
/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/libz.tbd is not an object file (not allowed in a library)
如果我更换
libz.dylib
与 libz.tbd
, xcode 显示了这个错误。我的项目是一个 Cocoa Touch 静态库。
最佳答案
我在这里找到了解决方案:
https://forums.developer.apple.com/thread/4572
总结一下:
它并不理想,因为它绕过了用于管理项目中链接库的 GUI,但它可以工作。
关于ios9 - xcode7 ios9 关于 libz.tbd 不是目标文件(库中不允许),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32734097/