When I launch my app on iOS 5.1, on a device (only tested on retina display so far), the Default@2x.png image is displayed with a single green line below the bottom of the image. I've confirmed the image is 640x960, and does not contain this green line.
I'm guessing this must be due to an issue with the PNG optimization tool Xcode is running prior to adding the resources to the bundle, especially since I don't see this when I run using the simulator.
Is there a way to repair or update this PNG optimization utility? (I'm running the latest Xcode 4.3.2 for Lion, from the Mac App Store).
There is a bug in pngcrush 1.6.4 which is installed in the app bundle of Xcode 4.3.2. I was able to fix this by following these instructions (thanks to http://www.mactricksandtips.com/2012/02/installing-and-using-pngcrush-on-your-mac.html):
Unzip the file using your favorite compression utility (or, in Terminal (or your favorite command line tool), navigate to the directory where you saved this download, and run this command (you may need to change the version number according to your download)
tar -xvzf pngcrush-1.7.15.tar.xz
liblibpng.dylib
and
pngcrush
) inside ImageOptim application bundle - Damien Debin 2012-04-19 13:09
For those like me, hitting this issue with XCode 4.5.2, this bug seems to manifest itself when the project.pbxproj has a conflict with PNG image file records as described in this support forum thread: https://devforums.apple.com/message/731402
Unlike the answer in that thread (ie., hand editing the .pbxproj file, not my favorite thing to do...) I found that deleting the references to the offending images and adding them again to the project file corrected the issue.