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.
我是这么解决的:
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 | | ||||||||||||||||||||||||||||||
|
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. | ||||||||||||
|
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 !! | ||||||||||||||||||||||||||||||
|
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. |