gpt4 book ai didi

ios - 如何链接到 xcode 7 beta 中的 libz 和 libsqlite?

转载 作者:可可西里 更新时间:2023-10-31 23:55:23 25 4
gpt4 key购买 nike

我遇到如下链接错误:

   +[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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com