今天引入到项目中的png图片,真机上运行报这样的错误:
While reading /Users/xxx img.png pngcrush caught libpng error:
Not a PNG file..
Could not find file: /Users//xxximg.png
Command /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图片内部编译不符合真正的png格式。