Load sprites in XCode 7.3 Beta #15199

65 篇文章 0 订阅
19 篇文章 0 订阅

https://github.com/cocos2d/cocos2d-x/issues/15199


4 participants

@zartako @slackmoehrle @rws08 @secredut
@zartako
zartako commented  24 days ago

If I try to load a sprite it fails with this error on the console:

libpng error: CgBI: unhandled critical chunk.

Everything works fine when I run it on simulator, only happens when running in device. If it might help, I am using Xcode 7.3 beta and iOS 9.3 beta. Downgrading to Xcode 7.2 solve the problem.

@slackmoehrle
slackmoehrle commented  22 days ago

I don't have Xcode 7.3 yet, but I can snag it and try to reproduce this.

@slackmoehrle
slackmoehrle commented  9 days ago

XCode 7.3 final comes out today. I will try with this version. Beta 5 seemed to work.

@rws08
rws08 commented  9 days ago

I have this problem too. using Xcode 7.3(7D175) and iOS 9.3.

libpng error: CgBI: unhandled critical chunk
cocos2d: SpriteFrameCache: couldn't load texture file.

CCImage.cpp

bool Image::initWithPngData(const unsigned char * data, ssize_t dataLen){
...
 png_read_info(png_ptr, info_ptr); // problem code
...
}
@secredut
secredut commented  9 days ago

I also have same problem with Xcode 7.3 and iOS 9.3.

@slackmoehrle
slackmoehrle commented  9 days ago

Thanks. I am downloading the latest XCode 7.3 build. Takes me quite some time.

@slackmoehrle
slackmoehrle commented  8 days ago

set:
Remove Text Metadata From PNG Files = NO.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值