集成微信的过程中遇到了编译不过的问题:
Undefined symbols for architecture x86_64:
"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 x86_64
1.Library Search Paths 已指向
2.文档上说明的库均已加入
动手搜索了『iOS 集成微信 sdk』看到了
/t/168888 179 天前的帖子,只有最后一个说对了『导入libc++.dylib』
搜索了『DecodeWithBase64』看到了
http://stackoverflow.com/q/28778965/3683845 提问者自问自答简直血与泪的控诉。I spent probably 30 miserable hours looking for this answer. I hope you find this post in less than 1. enjoy.
http://ilovetile.com/3452 2015/04/09 的文章
http://years.im/Home/Article/detail/id/55.html 看到这位博主提到其它 SDK 也有类似情况
所以,如果你觉得你都对了,但是死活编译不了
请加入 libc++.dylib
please add libc++.dylib
请加入 libc++.dylib
please add libc++.dylib
请加入 libc++.dylib
please add libc++.dylib
SEO: iOS Xcode 微信 WeChat weixin SDK 编译失败 x86_64