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 i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
不是太明白出了什么问题,是用了微信的sdk

解决方案 »

  1.   

    framework没有添加全,你去看看说明文档,对照一下是不是要求的framework都已经添加了
      

  2.   

    你用过wechatsdk吗?这玩意还要啥framework?能加的我都加了啊
      

  3.   

    需要的ui coregraphics foundation 我都加了呢
      

  4.   

    尝试下在target-build setting-architectures-valid architectures 里把i386加上去
      

  5.   

    说明libWeChatSDK.a 这个静态库不支持i386架构,你可以通过如下命令来查看这个静态库所支持的所有架构。i386 是供模拟器使用的。
    lipo -info ../..../libWeChatSDK.a
    如果通过上述命令,查看得到这个静态库确实不支持i386架构的话,只能是重新编译这个库
      

  6.   

    问题已解决,应该是微信sdk1.5的问题,找不到对应的编译包,把libc++这个导入就好了
      

  7.   

    参考这篇文章试试
    http://blog.csdn.net/azhou_hui/article/details/18312047
      

  8.   

    http://years.im/Home/Article/detail/id/55.html
      

  9.   

    微信sdk1.5的问题,找不到对应的编译包,把libc++这个导入就解决了