Image/jia_mousedown@2x.png pngcrush caught libpng error: Not a PNG file 类似错误的处理
2015-06-18 09:08
274 查看
***/Image/jia_mousedown@2x.png pngcrush caught libpng error: Not a PNG file..
应用在在模拟器上调试一点问题没有,但一放到真机上调试就出现copypngfile 的错误,编译器报错信息如下:
While reading /Users/avepoint/Desktop/**/**/Image/jia_mousedown@2x.png pngcrush caught libpng error:
Not a PNG file..
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
CopyPNGFile /Users/avepoint/Library/Developer/Xcode/DerivedData/**-eapmjmcpwpwpvcazuqcyashswpze/Build/Products/Debug-iphoneos/**.app/hsj.png **/Image/hsj.png
cd /Users/avepoint/Desktop/Melon/XMPPWorking_realPhone/**
export 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/avepoint/Desktop/**/**/Image/hsj.png /Users/avepoint/Library/Developer/Xcode/DerivedData/**-eapmjmcpwpwpvcazuqcyashswpze/Build/Products/Debug-iphoneos/**.app/hsj.png
错误信息提示说读取图片的时候没有找到这张图片,检查了一下图片路径,没有问题。
解决方案:
1.在build settings里把工程里的Compress
PNG files设置为NO,问题解决,但这样设置以后,弄出来的ipa会很大。
2.mac中用preview(预览)打开出问题的png文件,然后重新导出png文件或者用photoshop把png图片保存为NOT INTERLACED(不交错)的,覆盖源文件。这样真机调试时就没有错误了。
应用在在模拟器上调试一点问题没有,但一放到真机上调试就出现copypngfile 的错误,编译器报错信息如下:
While reading /Users/avepoint/Desktop/**/**/Image/jia_mousedown@2x.png pngcrush caught libpng error:
Not a PNG file..
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
CopyPNGFile /Users/avepoint/Library/Developer/Xcode/DerivedData/**-eapmjmcpwpwpvcazuqcyashswpze/Build/Products/Debug-iphoneos/**.app/hsj.png **/Image/hsj.png
cd /Users/avepoint/Desktop/Melon/XMPPWorking_realPhone/**
export 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/avepoint/Desktop/**/**/Image/hsj.png /Users/avepoint/Library/Developer/Xcode/DerivedData/**-eapmjmcpwpwpvcazuqcyashswpze/Build/Products/Debug-iphoneos/**.app/hsj.png
错误信息提示说读取图片的时候没有找到这张图片,检查了一下图片路径,没有问题。
解决方案:
1.在build settings里把工程里的Compress
PNG files设置为NO,问题解决,但这样设置以后,弄出来的ipa会很大。
2.mac中用preview(预览)打开出问题的png文件,然后重新导出png文件或者用photoshop把png图片保存为NOT INTERLACED(不交错)的,覆盖源文件。这样真机调试时就没有错误了。
相关文章推荐
- Unity3D实现弹幕的效果
- leetCode(10):Partition List
- mysql忘记root密码或报错:ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘xx‘
- leetCode(10):Partition List 分类: leetCode 2015-06-18 09:08 105人阅读 评论(0) 收藏
- 括号配对问题
- 由asp的一个错误,看语言的不同:asp & java
- centos下Unix网络编程的源码的使用问题
- 【剑指offer】面试题12、打印 1 到最大的 n 位数
- chrome 显示图片遇到的问题,与 淘宝图片服务器 缓存 有关系
- navigationcontroller手势翻页和navigationbar
- 平衡车跌倒 雷军能扶起这个阿斗吗?
- Ogre基础教程5:有缓冲输入
- 用位运算实现四则运算之加减乘除
- 谈谈iOS中粘性动画以及果冻效果的实现
- C++ Primer Plus学习笔记三(第四章)
- android端手机测试体系 (转)
- 获取硬件资源
- asp 调用 vb(activex dll) ,参数传递(传引用)需要注意
- easyUI datagrid 查询方法
- Android中的Handler01