How do i fix this CopyPNG File error?


While reading /Users/user/Desktop/AppProject/PruebaApp/Logo Retina.png

pngcrush caught libpng error:

Read Er Could not find file: /Users/user/Library/Developer/Xcode/DerivedData/PruebaApp-cblepoaxbqzyopcbcswwqjtftyon/Build/Intermediates/ArchiveIntermediates/MaderoAPP/InstallationBuildProductsLocation/Applications/MaderoAPP.app/Logo Retina.png

Command

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

Im getting these errors while archiving project, at the end it does archive but i want to get rid of it. I had trouble with the app before and i read that i should delete the DerivedData/(myproject)folder so i did. and apparently it is trying to look for the images in that folder how do i fix this??? Help!


Answers:


Try first by Hard Cleaning your project CMD+OPTION+SHIFT+K, If problem exists apply following method,

Build Phases -> Copy Bundle Resources, Any fileName is red color?

Or

Convert Logo Retina.png or Create it again, maybe it's an encoding\format issue.

Or

Rename "Logo Retina.png" to "LogoRetina.png".

~Good luck~