最近在帮别人用coco2dx3.8.1这样比较老的一个版本,来集成一个功能,然后需要打包成ios App。

在运行的时候官方示例项目报了一个错:

cocos2d-x Sprite对象 返回null

然后是在stackoverflod上查到的答案:

https://stackoverflow.com/questions/36816442/cocos2d-x-spritecreatefilename-png-returning-null

stackoverflow打开较慢,所以记录下它的答案:

把Remove Text Metadata From PNG Files从“Yes”改为“No”。

cocos2d-x Sprite对象 返回null

相关文章: