我是这么解决的:
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
up vote41down voteaccepted |
Did you check whether the file
|
||||||||||||||||||||||||||||||
|
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.
|
||||||||||||
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 !!
|
||||||||||||||||||||||||||||||
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.
|
欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 330987132 | Go:217696290 | Python:336880185 | 做人要厚道,转载请注明出处!http://www.cnblogs.com/sunshine-anycall/p/3272858.html