标签:
异常信息:
Undefined symbols for architecture i386: "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) "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)ld: symbol(s) not found for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)解决办法:在Build Phases选项卡的Link Binary With Libraries中,增加以下依赖:
注意:如果是Xcode 7.0之后的版本,需要添加libc++.tdb,libz.tdb;
如果是Xcode 7.0之前的版本,需要添加libc++.dylib,libz.dylib;
微信SDK导入报错 Undefined symbols for architecture i386:"operator delete[](void*)", referenced from:
标签:
原文地址:http://www.cnblogs.com/hacjy/p/5163798.html