作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我遇到如下链接错误:
+[WeChatApiUtil DecodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
"_deflate", referenced from:
+[MTAWXOHelper GZip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)
"_deflateEnd", referenced from:
+[MTAWXOHelper GZip:Out:] in libWeChatSDK.a(MTAWXOHelper.o)
"_deflateInit2_", referenced from:
但我已经将这些库添加到我的目标中。但目前所有这些库都有不同的扩展名 .tbd。
有什么想法吗?谢谢。
最佳答案
链接待定文件时,XCode 7 中存在一个已知问题。这是苹果开发者论坛关于如何在 XCode 7 中链接待定文件的答案的链接 - https://forums.developer.apple.com/message/8609#8609
[下面提供了链接中的片段]
This is a known issue in the Xcode 7 beta.
To work around this issue for now, please:
- Delete all references to .tbd files from either your linked libraries phase, or from the copied bundle resources phase (where they sometimes will be added).
- Add the library you want to link manually to the "Other Linker Flags" build settings, by adding the argument: -l for each library you want to link (for example, add "-lsqlite3" (without quotes)).
For those who are curious, the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK, and help to significantly reduce its download size.
关于ios - 如何链接到 xcode 7 beta 中的 libz 和 libsqlite?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30859416/
我是一名优秀的程序员,十分优秀!