当前位置:首页 > IT技术 > 微信平台 > 正文

微信支付接入报错 +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)
2021-08-01 17:08:16

1、报错内容

微信支付接入报错 +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)_资源分享

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)
2、解决办法
  • 导入libc.tbd
    微信支付接入报错 +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)_h5_02


作者: CH520

 
 
 
 

本文摘自 :https://blog.51cto.com/u

开通会员,享受整站包年服务立即开通 >