Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.5 - CopyPNGFile persists. Need new ideas

I'm making an iPad app and it runs on the simulator, but fails when i try building it for the device.

the error is below:

enter image description here

These are the things i've tried to rectify this issue:

  • went through every PNG file with Photoshop and saved them again w/o the interlace
  • Deleted all the images in my Resources folder and added them again by dragging/dropping the images again
  • Deleted ALL PNG images (left the JPGs) and it works...when i add one PNG, Xcode throws a hissy fit.
  • Deleted the derivedData in my ~Library/Developer/Xcode
  • quit Xcode and tried again
  • restarted my computer and tried again.

i tried checking about the paths, but i'm not sure. Any ideas would be great please.

Addendum i also want to add that Xcode is throwing errors against its own [email protected] and Default.png!

like image 396
Matthew Avatar asked Nov 16 '12 21:11

Matthew


2 Answers

In my case the error is resolved by going to

Build Phases -> Copy Bundle Resources

and removed all the duplicated entries of lunch images DefaultXX.png

like image 107
Androyal Avatar answered Nov 14 '22 21:11

Androyal


You have to save your PNG files as NOT INTERLACED. For example, by using Photoshop, go to menu File->Save For Web and Devices. Unchecked the box of 'Interlaced' and save the file. Usually interlaced box is unchecked already. Hope that helps

like image 6
X Sham Avatar answered Nov 14 '22 23:11

X Sham