集成微信的过程中遇到了编译不过的问题:
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
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/210808
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.