weChat SDK构建错误

Ibd*_*ine 3 ios wechat

我正在尝试让weChat SDK与我的应用程序一起使用.我按照下面的链接下载arm64文件,但没有运气.我仍然得到以下3个错误:

arm64上的WeChat SDK

Undefined symbols for architecture arm64:
  "operator new[](unsigned long)", referenced from:
      +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
      +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
      +[WeChatApiUtil DecodeWithBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
      +[WeChatApiUtil DecodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
  "operator delete[](void*)", referenced from:
      +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
      +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
      +[WeChatApiUtil DecodeWithBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
      +[WeChatApiUtil DecodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

请帮忙...

Ibd*_*ine 14

制作此编译器的关键如下:您必须将libc ++.dylib库添加到您的项目中.在任何其他链接中都没有提到这一点!我花了30个小时寻找这个答案.我希望你能在不到1的时间内找到这篇文章.

  • 真棒.这甚至不是他们的示例应用程序.你救了我的一天. (2认同)