pngcrush caught libpng error:
2016-03-09 14:48
666 查看
解决下面情况:
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/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng -compress “” /Users/gongihou/Documents/910/DLZ/zhuangtai.png /Users/gongihou/Library/Developer/Xcode/DerivedData/DLZ-frborfduejxrajgpkfdaipygijow/Build/Products/Debug-iphoneos/DLZ.app/zhuangtai.png
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
说是读取的时候没有找到这张图片,检查了一下图片路径,没有问题,于是google之,找到两种解决方法 :
1.在build settings里把工程里的Compress PNG files设置为NO,问题解决,但这样设置以后,弄出来的ipa会很大,感觉不是很理想。
2.mac上的preview(预览)打开出问题的png文件,然后重新导出为png文件或者用photoshop把png图片保存为NOT INTERLACED(不交错)的,这样真机调试时就没有错误了。
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/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng -compress “” /Users/gongihou/Documents/910/DLZ/zhuangtai.png /Users/gongihou/Library/Developer/Xcode/DerivedData/DLZ-frborfduejxrajgpkfdaipygijow/Build/Products/Debug-iphoneos/DLZ.app/zhuangtai.png
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
说是读取的时候没有找到这张图片,检查了一下图片路径,没有问题,于是google之,找到两种解决方法 :
1.在build settings里把工程里的Compress PNG files设置为NO,问题解决,但这样设置以后,弄出来的ipa会很大,感觉不是很理想。
2.mac上的preview(预览)打开出问题的png文件,然后重新导出为png文件或者用photoshop把png图片保存为NOT INTERLACED(不交错)的,这样真机调试时就没有错误了。
相关文章推荐
- Linux下查找文件:which、whereis、locate、find 命令的区别
- Java重定向IO
- Lua初探
- vs2010如何安装mvc3,怎样安装,详细的步骤,从哪下载?请看这篇文章。
- golang中调用C
- 无插件实现WordPress面包屑解决方案
- 异常捕获try catch的使用
- Apache Maven 入门篇 ( 上 )
- 牛顿迭代法
- php单例模式
- iOS中锁定竖屏不让其横屏的方法
- 浅析Android自动化测试基础技术(二)
- 自定义个TabLayout
- HDOJ 4542 小明系列故事——未知剩余系(反素数)
- LeetCode-112. Path Sum
- 相应的游戏服务器组件信息不存在,房间创建失败
- 关于mysql主从的数据同步不一致的解决方法
- System.arraycopy 和Arrays.copyOf
- LayoutAnimationController为视图添加动画效果
- 最小生成树