[寒江孤叶丶的Cocos2d-x之旅_18]Cocos2d-x 3.x arm64错误的解决方案

原创文章,欢迎转载,转载请注明:文章来自[寒江孤叶丶的Cocos2d-x之旅系列]

博客地址:http://blog.csdn.net/qq446569365

升级Xcode6.1后,使用iphone6进行真机调试的时候,会出现有关arm64的错误错误提示如下(只截取了部分):
 Undefined symbols for architecture arm64:
          "_WebPGetFeaturesInternal",referenced from:
              WebPGetFeatures(unsigned char const*,unsigned long,WebPBitstreamFeatures*) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "_WebPInitDecoderConfigInternal",referenced from:
              WebPInitDecoderConfig(WebPDecoderConfig*) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "_png_get_io_ptr",referenced from:
              cocos2d::(anonymous namespace)::pngReadCallback(png_struct_def*,unsigned char*,unsigned long) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "_png_error",unsigned long) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "_WebPDecode",referenced from:
              cocos2d::Image::initWithWebpData(unsigned char const*,long) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "_TIFfgetField",referenced from:
              cocos2d::Image::initWithTiffData(unsigned char const*,long) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "__TIFFmalloc",long) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)
          "_TIFFReadRGBaimageOriented",long) in libcocos2dx iOS.a(CCImage-5287FE6734B2FA44.o)

解决的办法很简单,将一些xxxx_arm64.a添加进入工程即可,操作步骤如下:

1.在项目工程中的Frameworks文件夹上右键,选择Add Files to "texaspoker"


2.找到cocos2d-x/external路径(就是Cocos2d源码路径下的external)

3.然后在搜索框中搜索 _arm64.a 然后Search范围选择 “external”,会搜索出来几个文件


4.将搜索出来的文件加入到工程内即可。注意红色箭头所指部分设置


收工,痛快的编译调试吧!

相关文章

    本文实践自 RayWenderlich、Ali Hafizji 的文章《...
Cocos-code-ide使用入门学习地点:杭州滨江邮箱:appdevzw@1...
第一次開始用手游引擎挺激动!!!进入正题。下载资源1:从C...
    Cocos2d-x是一款强大的基于OpenGLES的跨平台游戏开发...
1.  来源 QuickV3sample项目中的2048样例游戏,以及最近《...
   Cocos2d-x3.x已经支持使用CMake来进行构建了,这里尝试...