Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copypng failed with exit code 1

Tags:

ios

I am getting the following error when building my iPhone application. The reddarkedge.png is right there in the supporting files folder.

/Users/azamsharp/Desktop/UltraCam/UltraCam/TCam/reddarkedge.pngCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng failed with exit code 1

Even if I remove the reddarkedge.png from the project it still gives me the same error.

enter image description here

UPDATE SOLUTION:

Turns out I had to hard delete them.

like image 598
azamsharp Avatar asked Aug 08 '12 14:08

azamsharp


3 Answers

When you say "Even if I remove the reddarkedge.png from the project" when you remove it from the Xcode file navigator does it get removed from the copy bundle step of the target build process? If not maybe manually delete it there as well?

You could also try highl

You might also try opening the XML project file in a text editor and removing the reference by hand. Make sure to have a backup in case you have problems though.

Best of luck.

like image 185
zorn Avatar answered Nov 20 '22 01:11

zorn


Had the sameproblem with the CopyPNG error. Place the image in your project again and use the program ImageOptim over your images, this solved the problem. Maybe it will also solve your problem.

Or

Check the "Copy bundle resources" build stage to see if there are any missing files (png, txt, plist, etc.)

like image 7
Blazer Avatar answered Nov 20 '22 01:11

Blazer


Most of the time this happens when you missed to check the Copy items if needed while adding the images.

like image 3
RameshVel Avatar answered Nov 20 '22 01:11

RameshVel