我是这么解决的:
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
Did you check whether the file |
|||||||||||||||||||||||||||||||
|
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. |
|||||||||||||
|
I had the same problem. How to fix : Open up image with Preview -> File > Export > Format change to PNG and you are done !! |
|||||||||||||||||||||||||||||||
|
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. |