原创文章,欢迎转载,转载请注明:文章来自[寒江孤叶丶的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.将搜索出来的文件加入到工程内即可。注意红色箭头所指部分设置
收工,痛快的编译调试吧!
原文链接:https://www.f2er.com/cocos2dx/345958.html