ios PNG Crush error (PNG图片错误)

我是这么解决的:

I had the same problem. How to fix : Open up image with Preview -> File > Export > Format change to PNG and you are done

其他被采纳的方法:

12 Answers

activeoldestvotes


up vote41down voteaccepted

Did you check whether the file Users/kavapanga/Desktop/iPAD/ALN II 3 latest 2/trunk/Resourses/images/CS_logo_for_top_bar.png exists? Also check if it is infact a PNG file. Right click on the file and do a Get Info to check if the file has any other extension and is marked as hide extension. If you are not sure of the format of the file, opening the file and save it as a PNG file again should work ,most of the time.


share|edit|flag

edited Oct 25 '12 at 11:12

Besi
6,28122576

answered Mar 22 '11 at 6:42

Krishna
1,165713

 

   
   
Hi Krishna, Yes, i see the file is available with the .png format. – Getsy Mar 22 '11 at 6:50
1  
   
Could you please try saving it as a PNG once again? – Krishna Mar 22 '11 at 6:52
   
   
Hi Krishna, As you said, i saved again as .PNG format. It is not giving build error now. But, when i try to install on my iPad 2 through Xcode 4(all the settings are done), it shows "Finished Running MyApp-iPad" , but i'm not seeing the app installed on my iPad. What could be reason? – Getsy Mar 22 '11 at 6:54
1  
   
Would you mind accepting this answer? – Krishna Mar 22 '11 at 7:30
1  
   
I think it just got upvoted but not accepted. Not sure why. Did you click on the tick mark against the answer? – Krishna Mar 22 '11 at 7:38

show 10 more comments


up vote33down vote

I had the same problem, but it wasn't because of a corrupted png : it was because two PNG files had the same filename in different directories of my source tree. What was peculiar was that the errors (I had 4 files which had "twins") were not identical from one build to another. On one run I had errors on all files, on the other only on some of them.


share|edit|flag

answered May 26 '12 at 13:47

Guillaume Laurent
48153

 

2  
   
This happened to me. I opened a project I hadn't been using for a couple of days, and after two or three builds, this. Weird... – NicolasMiari Jun 18 '12 at 19:49
   
   
Possibly both versions were added to your copy-files build phase; at least that was the problem for me. – Pascal Apr 13 at 20:26

add comment (requires 50 reputation)


up vote22down vote

I had the same problem. How to fix : Open up image with Preview -> File > Export > Format change to PNG and you are done !!


share|edit|flag

answered Apr 12 '12 at 17:49

Dorald
24237

 

   
   
thak you :),great help in the hour of need – Yadnesh Jul 6 '12 at 14:19
   
   
this ans have done my work....+1 – hckr Nov 30 '12 at 11:23
   
   
wow, by far the easiest solution – Frank Fu Mar 10 at 10:02
   
   
One of the Best Answer! Banging my head whole day! – Developer Mar 28 at 20:49
   
   
This was a great find. Artist had saved as psd but with png extension – Codezy Jul 24 at 16:08

add comment (requires 50 reputation)


up vote8down vote

I got this error when I moved images around in the project's folder, to an "Images" folder.

Turns out my "Copy Resources" build phase contained the steps both to copy the files from their new, correct folder - and from the previous folder where they were stored. Removing the outdated build steps fixed the errors.


share|edit|flag
 

欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 330987132 | Go:217696290 | Python:336880185 | 做人要厚道,转载请注明出处!http://www.cnblogs.com/sunshine-anycall/p/3272858.html

时间: 2024-12-22 02:54:12

ios PNG Crush error (PNG图片错误)的相关文章

ios-提交IOS应用更新时遇到的错误提示!ERROR ITMS-90186/90062

问题描述 提交IOS应用更新时遇到的错误提示!ERROR ITMS-90186/90062 7月初经过两个月的审核修改,新应用正式在IOS上架了,在高兴的同时,新版本也出炉了,可在上传更新版本的时候遇到了问题:我用的是:Applecation Loader 提交的应用在提交时提示:ERROR ITMS-90186: ""Invalid Pre-Release Train. The train version '100' is closed for new build submissio

ios 构建版本错误-ios 构建版本 ERROR ITMS-90529 90534 90207

问题描述 ios 构建版本 ERROR ITMS-90529 90534 90207 ERROR ITMS-90529: "Invalid package. Applications built with sdk 9.0 or later must be packaged as proper IPA files." ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with

在ios中创建plist文件出现错误

问题描述 在ios中创建plist文件出现错误 我想写一个方法用来创建plist文件,在网上搜了一些代码案例,但是不知道哪出错了.在log中: 2013-03-28 15:33:47.953 ECom[6680:c07] Property list invalid for format: 100 (property lists cannot contain NULL)2013-03-28 15:33:47.954 ECom[6680:c07] An error has occures <ECOM

ios 构建版本-iOS 构建版本 ERROR ITMS-90207: &amp;amp;quot;Invalid Bundle. 。。。

问题描述 iOS 构建版本 ERROR ITMS-90207: "Invalid Bundle. ... 我是用Xcode7.1 构建版本 错误ERROR ITMS-90207: "Invalid Bundle. The bundle at 'JiJie.app' does not contain a bundle executable." 使用Xcode6.4 没有出现的但传上去 一直显示 "正在处理" 求大神搭救???? 解决方案 加qq说吧.1700

苹果发布iOS补丁修复Error 53

2月19日消息,据Engadget UK网站报道,本月初英国卫报报道一些iPhone用户--尤其是那些将自己的手机交给第三方进行屏幕或者Home按键修复的用户--的设备因为"Error 53"而变成砖头.这一错误发生在手机无法识别连接至Home按键的替代线时,这导致iPhone手机瞬间变成砖头.本周四苹果宣布发布更新iOS 9.2.1,能够解决这个问题并恢复功能性. 针对最近的一些争议,苹果发布了一下声明: 某些用户的设备在试图进行iOS更新或者在Mac或PC上从iTunes返回时会出

Error inflating class错误

09-30 23:30:01.968: E/AndroidRuntime(14741): Caused by: java.lang.NoSuchMethodException: WaterBoxView(Context,AttributeSet) 09-30 23:30:01.968: E/AndroidRuntime(14741): at java.lang.Class.getMatchingConstructor(Class.java:643) 09-30 23:30:01.968: E/A

c++-error C2143: 语法错误 : 缺少“;”(在“*”的前面)

问题描述 error C2143: 语法错误 : 缺少";"(在"*"的前面) #ifndef __HELLOWORLD_SCENE_H__#define __HELLOWORLD_SCENE_H__#include ""cocos2d.h""#include ""Box2D/Box2D.h""#include ""SimpleAudioEngine.h"&

安装Win7时出现output error file to错误的原因及解决方

  随着系统安装越来越方便,不少用户都自己手动安装系统,近期有部分用户反映自己的安装win7系统时候出现"output error file to the following locatin"错误提示,那么是什么原因造成的这种错误呢?应该如何解决?小编经过在网上查找资料发现,有五种原因会出现"output error file to"错误提示,下面我们一下吧. 一.可能是在恢复ghost时出现外部出现震动,用户不小心碰到光驱的问题 解决方法:让光驱保持平稳,重新装一

win7系统安装逐鹿工具箱提示“error launching installer”错误怎么办?

  小编今天在安装逐鹿工具想的时候提示"error launching installer"错误,看到这个很是苦恼,不知道大家是不是和小编一样遇到类似的问题呢?小编的电脑系统是win7的,当遇到win7系统安装逐鹿工具箱时,提示"error launching installer"错误怎么办?看看小编给大家分享的解决方法吧! 来看看解决方法吧: 1.上述问题是因为界面语言和非Unicode程序语言不一致导致的 2.点击开始菜单,选择控制面板项打开,如下图: 3.在控