Error While Publishing App

96 views Asked by At

I got error that png files not found when I archive my app.

Error:

While reading /Users/AccountName/Desktop/update/App/App/top_bar.png pngcrush caught libpng error:
Not a PNG file..

Could not find file: /Users/AccountName/Library/Developer/Xcode/DerivedData/App-erzlunhcqsjstvawfnqwjlhgtolx/Build/Intermediates/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app/top_bar.png
Command /Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure
1

There are 1 answers

4
Glenn Randers-Pehrson On

Your images have probably been run through Apple's "pngcrush" program and therefore are not valid PNG files any more. I'm told that Apple's "pngcrush" has a way of reverting the damage and recreating a valid PNG from the crushed file, perhaps with some loss of data. If you can look at the beginning of the file and the bytes "CgBI" appear starting at byte 12 instead of "IHDR", that will confirm that the file has indeed been apple-pngcrushed.