Xcode6+Cocos2d-x真机调试 报错

目前真机调试时遇到以下问题。

Undefined symbols for architecture arm64:
  "_png_get_io_ptr", referenced from:
      cocos2d::(anonymous namespace)::pngReadCallback(png_struct_def*, unsigned char*, unsigned long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_error", referenced from:
      cocos2d::(anonymous namespace)::pngReadCallback(png_struct_def*, unsigned char*, unsigned long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_WebPInitDecoderConfigInternal", referenced from:
      cocos2d::Image::initWithWebpData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_WebPGetFeaturesInternal", referenced from:
      cocos2d::Image::initWithWebpData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_TIFFGetField", referenced from:
      cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "__TIFFmalloc", referenced from:
      cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_TIFFReadRGBAImageOriented", referenced from:
      cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_TIFFClose", referenced from:
      cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_jpeg_CreateDecompress", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_jpeg_read_header", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_set_strip_16", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_create_read_struct", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_get_image_height", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_set_packing", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_sig_cmp", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_read_update_info", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_get_rowbytes", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_TIFFClientOpen", referenced from:
      cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Set_Char_Size", referenced from:
      cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_FT_Get_Glyph", referenced from:
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_curl_slist_append", referenced from:
      cocos2d::network::CURLRaii::init(cocos2d::network::HttpRequest*, unsigned long (*)(void*, unsigned long, unsigned long, void*), void*, unsigned long (*)(void*, unsigned long, unsigned long, void*), void*) in libcocos2dx iOS.a(HttpClient.o)
  "_png_read_image", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Stroker_Set", referenced from:
      cocos2d::FontFreeType::FontFreeType(bool, int) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_png_set_longjmp_fn", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_jpeg_read_scanlines", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_read_end", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_destroy_read_struct", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Glyph_StrokeBorder", referenced from:
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_jpeg_destroy_decompress", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Glyph_Get_CBox", referenced from:
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_jpeg_std_error", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_curl_easy_cleanup", referenced from:
      cocos2d::network::CURLRaii::~CURLRaii() in libcocos2dx iOS.a(HttpClient.o)
  "_png_set_tRNS_to_alpha", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Done_FreeType", referenced from:
      cocos2d::FontFreeType::shutdownFreeType() in libcocos2dx iOS.a(CCFontFreeType.o)
  "_FT_Done_Glyph", referenced from:
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_jpeg_start_decompress", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Load_Glyph", referenced from:
      cocos2d::FontFreeType::getGlyphBitmap(unsigned short, long&, long&, cocos2d::Rect&, int&) in libcocos2dx iOS.a(CCFontFreeType.o)
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_FT_Outline_Translate", referenced from:
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_FT_Stroker_Done", referenced from:
      cocos2d::FontFreeType::~FontFreeType() in libcocos2dx iOS.a(CCFontFreeType.o)
  "_png_get_bit_depth", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Get_Kerning", referenced from:
      cocos2d::FontFreeType::getHorizontalKerningForChars(unsigned short, unsigned short) const in libcocos2dx iOS.a(CCFontFreeType.o)
  "_FT_Done_Face", referenced from:
      cocos2d::FontFreeType::~FontFreeType() in libcocos2dx iOS.a(CCFontFreeType.o)
  "_png_create_info_struct", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_read_info", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Stroker_New", referenced from:
      cocos2d::FontFreeType::FontFreeType(bool, int) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_png_set_read_fn", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_curl_easy_setopt", referenced from:
      cocos2d::network::HttpClient::networkThread() in libcocos2dx iOS.a(HttpClient.o)
      cocos2d::network::CURLRaii::init(cocos2d::network::HttpRequest*, unsigned long (*)(void*, unsigned long, unsigned long, void*), void*, unsigned long (*)(void*, unsigned long, unsigned long, void*), void*) in libcocos2dx iOS.a(HttpClient.o)
  "_curl_easy_perform", referenced from:
      cocos2d::network::CURLRaii::perform(long*) in libcocos2dx iOS.a(HttpClient.o)
  "_jpeg_mem_src", referenced from:
      cocos2d::Image::initWithJpgData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Init_FreeType", referenced from:
      cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
      cocos2d::FontFreeType::FontFreeType(bool, int) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_curl_slist_free_all", referenced from:
      cocos2d::network::CURLRaii::~CURLRaii() in libcocos2dx iOS.a(HttpClient.o)
  "_FT_Select_Charmap", referenced from:
      cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_FT_Outline_Render", referenced from:
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "__TIFFfree", referenced from:
      cocos2d::Image::initWithTiffData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_set_expand_gray_1_2_4_to_8", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_New_Memory_Face", referenced from:
      cocos2d::FontFreeType::createFontObject(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_png_set_palette_to_rgb", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_FT_Get_Char_Index", referenced from:
      cocos2d::FontFreeType::getHorizontalKerningForChars(unsigned short, unsigned short) const in libcocos2dx iOS.a(CCFontFreeType.o)
      cocos2d::FontFreeType::getGlyphBitmap(unsigned short, long&, long&, cocos2d::Rect&, int&) in libcocos2dx iOS.a(CCFontFreeType.o)
      cocos2d::FontFreeType::getGlyphBitmapWithOutline(unsigned short, FT_BBox_&) in libcocos2dx iOS.a(CCFontFreeType.o)
  "_png_get_image_width", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_png_get_valid", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_curl_easy_getinfo", referenced from:
      cocos2d::network::CURLRaii::perform(long*) in libcocos2dx iOS.a(HttpClient.o)
  "_png_get_color_type", referenced from:
      cocos2d::Image::initWithPngData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_WebPDecode", referenced from:
      cocos2d::Image::initWithWebpData(unsigned char const*, long) in libcocos2dx iOS.a(CCImage-480BC5818CB61150.o)
  "_curl_easy_init", referenced from:
      cocos2d::network::HttpClient::networkThread() in libcocos2dx iOS.a(HttpClient.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法:

将以上所有.a文件拖入xcode中,重新编译即可。

时间: 2024-10-10 16:45:16

Xcode6+Cocos2d-x真机调试 报错的相关文章

Xcode 真机调试报错:This application&#39;s application-identifier entitleme

    This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed 解决方法:1.Xcode-Window->Devices2.选中你的设备,在右边的installed Apps中删除这个App3.重新编绎即可 Xcode 真机调试报错:This

真机调试报错error ==Error Domain=NSURLErrorDomain Code=-1009 &quot;似乎已断开与互联网的连接。&quot;

真机调试报错error ==Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接." 请注意,错误代码是-1009,网上关于网络链接查询错误代码的网站很多,查询一下,会发现 -1009 kCFURLErrorNotConnectedToInternet NSURLErrorNotConnectedToInternet "The connection failed because the device is not con

XCode + IOS + Flutter真机调试报错

XCode + IOS + Flutter真机调试 报错:Could not build the precompiled application for the device. It appears that your application still contains the default signing identifier. Try replacing 'com.example' with your signing id in Xcode: open ios/Runner.xcwork

Xcode真机调试报错(证书的签发者无效)

Xcode真机调试时报错: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from: /var/mobile/Containers/Bundle/Application/A54D1688-B528-4606-9E02-B51433425FB7/LoveFreshBeen.app/LoveFreshBeen Reason: no suitable image found.  Did find: /pri

iOS开发真机调试报错

关键词 --<真机调试.Dependency Analysis Error> No Architectures to compile for···"没有用来编译**的架构" 在真机调试的时候出现这个问题.根据报错信息以为要修改 这里的Architectures,查阅了有关armv7,armv7s,arm64的相关知识,顺便贴上来 armv6 iPhone iPhone2 iPhone3G 第一代和第二代iPod Touch armv7 iPhone4 iPhone4S ar

Android studio 3.1.3真机调试报错,no target device found

Android studio 3.1.2 的 Android monitor 改为 Android profiler,直接点这个就可以真机调试,在手机安装相应app 如果不行,报错,"no target device found",点一下右下角这个初始化 adb,再运行即可 原文地址:https://www.cnblogs.com/ichenwin/p/10992355.html

uni-app真机调试报错request:fail abort解决方法

Android端真机调试访问本地接口数据时报错:request:fail abort 报错代码 onLoad: function(e) { uni.request({ url: 'http://localhost:8088/api/Gift', method: 'GET', data: {}, success: (res) => { this.GiftInfo = res.data; }, fail: (fa) => { console.log(fa); } }) } 本地接口访问没有问题:

Xcode真机调试报错:The application could not be verified.

今天真机调试的时候遇到这个错误: The application could not be verified. 这还是第一次遇到,应该是手机上的app的证书跟如今的证书不一致导致. 解决方法有两个 xcode中切换证书: 你手机上的app用的是哪个证书,你如今还用那个证书执行. 删除手机上的app 直接删除手机上的app.再执行就能够啦! 我的博客:刚刚在线 ?

小程序插件集成functional-page-navigator真机调试报错

小程序集成插件 插件里面有functional-page-navigator标签 真机在调用插件的时候报错 "小程序开发版已过期,请重新扫码连接" 插件已经审核通过了,而且小程序集成后已经发布到体验版扫码,还是出现这个问题. 经过排查,最终发现出问题在 version="develop"问题上. version代表,跳转到的小程序版本,线上版本必须设置为 release. 标签使用示例如下: <functional-page-navigator name=&q