今天用 cocos2dx3.11.1 + xcode7.3.1 进行开发,新建项目后遇到如下问题:

在iphone(ios9.3.5)真机运行项目(用xcode自带虚拟机没有出现问题)

auto sprite = Sprite::create("HelloWorld.png"); 创建精灵后,sprite为NULL,

运行直接报错:

libpng error: CgBI: unhandled critical chunk

 

解决方法:在项目的Build Settings中搜索png,找到相关配置项如下,将第二项改为“NO”,再次运行项目就没有问题了。

cocos2dx3.x + xcode7.3 问题“libpng error: CgBI: unhandled critical chunk”

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案