While reading pngcrush caught libpng error: Read Error

Tue, 02/21/2012 - 09:44 -- jeff

Here is how to fix the Xcode build warning: While reading [X] pngcrush caught libpng error: Read Error

  1. Select the project navigator (default view in left-most pane of Xcode, the one with the folder icon)
  2. At the bottom, there is a search filter for these files. Type the name of the offending file here
  3. You should see more than one copy of the offending file, perhaps in different directories
  4. Slow select the file twice (to enable rename mode) and rename each copy of the file a different name
  5. Build and clean!

Hope it helps!

Comments

Submitted by Brett (not verified) on

That doesn't help, no, because it's Icon-72.png that needs to copy. If I don't have that, I don't have my proper app icon.

Submitted by jeff on

Roger that, including your comment for the betterment of others in your situation. Thanks!

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.