码迷,mamicode.com
首页 > 移动开发 > 详细

iOS开发问题—— CopyPNGFile error

时间:2016-04-29 14:17:41      阅读:359      评论:0      收藏:0      [点我收藏+]

标签:

问题描述

While reading /Users/andmac/Documents/xxxxxx/xxxxxx/Image/xxxxxx/btn_next.png pngcrush caught libpng error:

   [00][00][0\243\372\277\327\320\354\217D.\357\217

Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

  看描述是png文件被损坏

问题起因

  首先,报错的图片之前有在正常使用,为了整合几个项目,将该项目下的所有image文件新建到对应的image文件夹中,和之前相比多了一层目录;另外修改了图片的文件名。之后真机调试就有以上报错,没有在模拟机上试,搜索网上资料有看到说模拟机OK。

解决

  虽然在文件移动过程中没有什么特别操作,该png文件也可以被正常打开,所以不能确切知道哪里损坏了。

  直接将打开的该文件重新导出其png格式,替换掉报错的图片,即可。

 

iOS开发问题—— CopyPNGFile error

标签:

原文地址:http://www.cnblogs.com/RosaBai/p/5445560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!