While reading XXX pngcrush caught libpng error: N
While reading /XXX/XXX/XXX/img1.png pngcrush caught libpng error: Not a PNG filCould not find file: /Users/XXX/Library/Developer/Xcode/DerivedData/CookBookDemo-cnttcobrbmvbddeiesgsxnfwihfe/Build/Products/Debug-iphoneos/CookBookDemo.app/img1.pngCommand /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
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文件,问题解决。
案例三:
附上报错信息
原因是提示的png并不是ps到处的png,而是手动修改jpeg后缀名为png,在模拟器上不会报错,但在真机,不识别这种所谓的“png”图片。
解决方案:
用ps重新导出png就ok了
posted on 2016-04-23 19:59 🌞Bob 阅读(470) 评论(0) 编辑 收藏 举报