Not a PNG filCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develope

来源:互联网 发布:搭接网络计划 sts例子 编辑:程序博客网 时间:2024/06/08 15:23

Xcode报错: 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

原因:可能你的图本来就是被压缩过,不是真正意义上的PNG图片

解决方案1:选择工程文件—>Build Settings—>Packaging—>Compress PNG Files设置为NO。

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

0 0