pngcrush caught libpng error:
解决下面情况: 1. 首先要用photoshop将png文件打开后另存为png 文件,在弹出的交织与否时,选择否。 2. 还要看一下工程里面的文件,有时多弄了几个文件相同文件名时,记得去掉那些不用的,否则若只更换一处的话,还是有错误。 应用在在模拟器上调试一点问题没有,但一放到真机上调试就出现copypngfile 的错误,错误信息如下: CopyPNGFile /Users/gongihou/Library/Developer/Xcode/DerivedData/DLZ-frborfduejxrajgpkfdaipygijow/Build/Products/Debug-iphoneos/DLZ.app/zhuangtai.png DLZ/zhuangtai.png cd /Users/gongihou/Documents/910 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer