Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 5    Views: 1629

tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
05/14/13 03:37 PM (12 years ago)

CopyPNGFile Error

I've got a problem when testing on my iPhone for my new app update. All my header images to my new app have the " CopyPNGFile Error " when uploading the app to my phone. Although the build succeeds, the header images all have question marks all over them. This does not happen in the simulator, and the simulator is exactly how I want it. What on earth is going on here? I want to test it properly before sending off to Apple, because if they get the same errors, they will definitely reject it. I get 91 of these errors, all of them look very similar to this: While reading /Users/Thomas/Developer/Apps/Berlitz Edinburgh/berlitzedinburgh_v20_iOS/BT_Images/[email protected] pngcrush caught libpng error: Not a PNG filCould not find file: /Users/Thomas/Library/Developer/Xcode/DerivedData/berlitzedinburgh-dtejrxqeqiapyfbjapuyfkasunjk/Build/Products/Debug-iphoneos/berlitzedinburgh.app/[email protected] /Applications/Developer/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
05/14/13 06:01 PM (12 years ago)
I have this happen periodically, my solution, copy the images away, delete them from xcode, then copy them back. Fixes it every time. Don't know why it happens though. It's like it didn't get a clean copy.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/14/13 06:09 PM (12 years ago)
You might try deleting the app from the device before reloading; perhaps some things aren't being written over properly. Should a space between 'berlitz' and 'edinburgh' be a problem? I wouldn't think so, but... Cheers! -- Smug
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/15/13 12:28 AM (12 years ago)
I had this and it was down to images that were previously jpeg's but that id changed to png's. After messing with thema few times, i just renamed thema s jpegs and changed the links to them to match, and all was ok. (BT_Quiz image questions in my case)
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
05/15/13 02:50 AM (12 years ago)
You can also look through the files and look for one where it's name is in red. This error usually occurs when a image link has been broken. -tM
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
05/18/13 04:50 AM (12 years ago)
I'm afraid I'm still getting the same errors, despite whatever I do to it. Even when archiving the app, it comes with these errors, but the simulator works fine. Some images are transferred to my iPhone and iPad, and but most aren't.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.