日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

ios PNG Crush error (PNG图片错误)

發(fā)布時(shí)間:2023/12/10 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ios PNG Crush error (PNG图片错误) 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

我是這么解決的:

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 ?
歡迎加群互相學(xué)習(xí),共同進(jìn)步。QQ群:iOS: 58099570 | Android: 330987132 | Go:217696290 | Python:336880185 | 做人要厚道,轉(zhuǎn)載請(qǐng)注明出處!http://www.cnblogs.com/sunshine-anycall/p/3272858.html

總結(jié)

以上是生活随笔為你收集整理的ios PNG Crush error (PNG图片错误)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。