关于libz.tbd的xcode7 ios9不是目标文件(库中不允许) [英] xcode7 ios9 about libz.tbd is not an object file (not allowed in a library)
问题描述
错误:
/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/libz.tbd不是目标文件(库中不允许)
/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会显示此错误.我的项目是可可触摸静态库.
If I replace libz.dylib
with libz.tbd
, xcode shows this bug. My project is a Cocoa Touch Static Library.
推荐答案
我在这里找到了解决方案: https://forums.developer.apple.com/thread/4572
I found the solution here: https://forums.developer.apple.com/thread/4572
总结:
- 从库和框架"区域中删除libz.tbd文件.
- 编辑其他链接程序标记的构建设置,添加"-lz"
这是不理想的,因为它绕过了用于管理项目中链接库的GUI,但是可以使用.
It isn't ideal because it bypasses the GUI for managing the linked libraries in your project, but it works.
这篇关于关于libz.tbd的xcode7 ios9不是目标文件(库中不允许)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!