您的位置:首页 > 移动开发 > IOS开发

ios 真机调试时出现CopyPngFile error解决方法

2016-03-08 18:56 603 查看
ios 真机调试时出现CopyPngFile error解决方法
http://bbs.9ria.com/thread-214243-1-1.html http://blog.csdn.net/pingchangtan367/article/details/9301663
Not a PNG filCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

两种解决方法 :

1.在build settings里把工程里的Compress
PNG files设置为NO,问题解决,但这样设置以后,ipa会很大,不推荐。

2.mac上的preview(预览)打开出问题的png文件,然后重新导出为png文件,问题解决。

说是读取的时候没有找到这张图片,检查了一下图片路径,没有问题,于是google之,找到两种解决方法


1.在build settings里把工程里的Compress PNG files设置为NO,问题解决,但这样设置以后,弄出来的ipa会很大,感觉不是很理想。

2.mac上的preview(预览)打开出问题的png文件,然后重新导出为png文件或者用photoshop把png图片保存为NOT INTERLACED(不交错)的,这样真机调试时就没有错误了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: