天天看點

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

<a></a>

did you check whether the file <code>users/kavapanga/desktop/ipad/aln ii 3 latest 2/trunk/resourses/images/cs_logo_for_top_bar.png</code> 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.

<a href="http://stackoverflow.com/posts/5387703/revisions">edited oct 25 '12 at 11:12</a>

ios PNG Crush error (PNG圖檔錯誤)

<a href="http://stackoverflow.com/users/784318/besi">besi</a>

6,28122576

answered mar 22 '11 at 6:42

ios PNG Crush error (PNG圖檔錯誤)

<a href="http://stackoverflow.com/users/206591/krishna">krishna</a>

1,165713

1

<a href="http://stackoverflow.com/questions/5387671/ipad-png-crush-error">show 10 more comments</a>

ios PNG Crush error (PNG圖檔錯誤)
ios PNG Crush error (PNG圖檔錯誤)

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.

answered may 26 '12 at 13:47

ios PNG Crush error (PNG圖檔錯誤)

<a href="http://stackoverflow.com/users/1081361/guillaume-laurent">guillaume laurent</a>

48153

2

i had the same problem. how to fix : open up image with preview -&gt; file &gt; export &gt; format change to png and you are done !!

answered apr 12 '12 at 17:49

ios PNG Crush error (PNG圖檔錯誤)

<a href="http://stackoverflow.com/users/477868/dorald">dorald</a>

24237

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.

歡迎加群互相學習,共同進步。qq群:ios: 58099570 | android: 330987132 | go:217696290 | python:336880185 | 做人要厚道,轉載請注明出處!http://www.cnblogs.com/sunshine-anycall/p/3272858.html

繼續閱讀