flutter pub get完后,直接运行项目报错了
MrNew opened this issue · comments
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)
"___cxa_begin_catch", referenced from:
___clang_call_terminate in libWeChatSDK.a(WechatAuthSDK.o)
"operator delete", 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)
"std::terminate()", referenced from:
___clang_call_terminate in libWeChatSDK.a(WechatAuthSDK.o)
"___gxx_personality_v0", referenced from:
-[WechatAuthSDK init] in libWeChatSDK.a(WechatAuthSDK.o)
-[WechatAuthSDK dealloc] in libWeChatSDK.a(WechatAuthSDK.o)
-[WechatAuthSDK resetAll] in libWeChatSDK.a(WechatAuthSDK.o)
-[WechatAuthSDK resetConnection] in libWeChatSDK.a(WechatAuthSDK.o)
-[WechatAuthSDK Auth:nonceStr:timeStamp:scope:signature:schemeData:] in libWeChatSDK.a(WechatAuthSDK.o)
-[WechatAuthSDK StopAuth] in libWeChatSDK.a(WechatAuthSDK.o)
-[WechatAuthSDK sendAuthRequest:] in libWeChatSDK.a(WechatAuthSDK.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:在Xocde中导入libc++.tbd