Xcode 4.3.1 PNG Compression Corruption, Can't Submit to App Store

Number:rdar://11046386 Date Originated:March 14, 2012
Status:Closed Resolved:Yes
Product:Xcode Product Version:4.3.1
Classification:Serious Bug Reproducible:Always
App binaries for iOS Apps submitted to the App Store with Xcode 4.3.1 will be rejected if "Compress PNG Files" is set to "YES", with the following rejection: "Corrupt PNG File - The PNG icon file Icon@2x.png appears to be corrupt."

Steps to Reproduce:
1. Create an iPhone app, with all the required app icon sizes and filenames.

2. Add all required icon filenames to the <app>-Info.plist CFBundleIconFiles array, named correctly.

3. Set "Compress PNG Files" to "YES" in the Build Settings for the Target.

4. Submit the app via the Application Loader 2.5.2 (236) included in Xcode 4.3.1 (4E1019) to iTunes Connect.

5. App will be rejected because of: "Corrupt PNG File - The PNG icon file icon@2x.png appears to be corrupt."

Expected Results:
The app should be accepted. The file is clearly not corrupted. Fresh copies of icon files can be created and added to the project, included in a new binary, and will still be rejected.

Actual Results:
The app is rejected.

Turning off "Compress PNG Files" in the Build Settings prior to binary submission will result in an accepted binary, however without compression, the submitted binary is significantly larger. This leads to poor customer experiences with larger downloads.

The file rejected for corruption has been attached. It is not corrupted and will open in any image viewer/editor without issue.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!