Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
Here's my error log:


Code:
CopyPNGFile "/Users/montana/Library/Developer/Xcode/DerivedData/Clean_Cuisine-ehgtyvwpzowtevembvxzqrqkppoj/Build/Products/Debug-iphoneos/Clean Cuisine.app/CCIcon144x144.png" ../../../Desktop/CCIcon144x144.png
    cd "/Users/montana/Documents/Xcode Projects/Clean Cuisine"
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng -compress "" "/Users/montana/Documents/Xcode Projects/Clean Cuisine/../../../Desktop/CCIcon144x144.png" "/Users/montana/Library/Developer/Xcode/DerivedData/Clean_Cuisine-ehgtyvwpzowtevembvxzqrqkppoj/Build/Products/Debug-iphoneos/Clean Cuisine.app/CCIcon144x144.png"

   Not a PNG filCommand /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


I don't know what's wrong. All the PNG files are in the project. For some reason, Xcode has duplicated rsz_ccicon114x114.png.

Also, when I run the app on an actual iPad, I don't see the work I've done thus far on the iPad storyboard. It looks like I did nothing else besides add a tab-bar controller and a sleep timer that activates when the app is launched. I did do more than add a tab bar controller to the storyboard, and I took out the sleep timer.

The same thing happened before I updated Xcode to 4.5.1. I had hoped the point update would fix the problem, but alas, it didn't.

Please tell me this is not supposed to happen. If it is, I now have a good reason to hate Xcode as long as I shall live.
 
Last edited by a moderator:
Okay, I reported both issues to Apple via their bug reporter. I'm going to wait to see what they have to say about it. I just built the app and it seems that it's warning me to check my dependencies, but there is nothing listed under "Target Dependencies."
 
Are the layers of the PNG locked? Can you try re saving the PNG with Preview or something?

Xcode has troubled me in the past due to a similar issue. In my case pngcrush would fail (never exit, eating all of the cpu) during archiving.
 
Here's my error log:


Code:
CopyPNGFile "/Users/montana/Library/Developer/Xcode/DerivedData/Clean_Cuisine-ehgtyvwpzowtevembvxzqrqkppoj/Build/Products/Debug-iphoneos/Clean Cuisine.app/CCIcon144x144.png" ../../../Desktop/CCIcon144x144.png
    cd "/Users/montana/Documents/Xcode Projects/Clean Cuisine"
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng -compress "" "/Users/montana/Documents/Xcode Projects/Clean Cuisine/../../../Desktop/CCIcon144x144.png" "/Users/montana/Library/Developer/Xcode/DerivedData/Clean_Cuisine-ehgtyvwpzowtevembvxzqrqkppoj/Build/Products/Debug-iphoneos/Clean Cuisine.app/CCIcon144x144.png"

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


I don't know what's wrong. All the PNG files are in the project. For some reason, Xcode has duplicated rsz_ccicon114x114.png.

Also, when I run the app on an actual iPad, I don't see the work I've done thus far on the iPad storyboard. It looks like I did nothing else besides add a tab-bar controller and a sleep timer that activates when the app is launched. I did do more than add a tab bar controller to the storyboard, and I took out the sleep timer.

The same thing happened before I updated Xcode to 4.5.1. I had hoped the point update would fix the problem, but alas, it didn't.

Please tell me this is not supposed to happen. If it is, I now have a good reason to hate Xcode as long as I shall live.

Waiting for Apple to respond to your bug report will likely yield an infinite wait.

That line in your text that I bolded suggests that the copypng command is being passed a non-PNG file. Is CCIcon144x144.png on your Desktop (which other lines suggests is where the command is looking for it)?

If rsz_ccicon114x114.png is a duplicate reference (pointing to the same file in the Finder) in your project panel on the left, you should be able to remove one of those references.

To confirm where Xcode thinks a file is, hi-light it, press the control key and click the mouse. A pop will appear with the option "Show in Finder".

Click on the Target for the app, click on "Build Phases", expand the "Copy Bundle Resources" and make sure that PNG is listed in there for the path it is actually at.
 
Last edited by a moderator:
Are the layers of the PNG locked? Can you try re saving the PNG with Preview or something?

Xcode has troubled me in the past due to a similar issue. In my case pngcrush would fail (never exit, eating all of the cpu) during archiving.
I don't know about the layers. How do I check those?
Waiting for Apple to respond to your bug report will likely yield an infinite wait.

That line in your text that I bolded suggests that the copypng command is being passed a non-PNG file. Is CCIcon144x144.png on your Desktop (which other lines suggests is where the command is looking for it)?

If rsz_ccicon114x114.png is a duplicate reference (pointing to the same file in the Finder) in your project panel on the left, you should be able to remove one of those references.

To confirm where Xcode thinks a file is, hi-light it, press the control key and click the mouse. A pop will appear with the option "Show in Finder".

Click on the Target for the app, click on "Build Phases", expand the "Copy Bundle Resources" and make sure that PNG is listed in there for the path it is actually at.
Thank you for the suggestions. I have already removed the duplicate reference.

I will try both solutions. If the problems are solved, great! But Xcode still sucks.
 
Open the png in Photoshop. In the layers panel if it has a lock icon next to it, it means the layer is locked.

I didn't use Photoshop. All the icons came from a JPG that was renamed to a PNG and resized as necessary.

Anyway, all the files are on the system and Xcode is pointing to the right place.
 
Last edited:
Waiting for Apple to respond to your bug report will likely yield an infinite wait.

I actually got a response from them as to my progress not showing up on the iPad. I'm thinking that marking it as a serious bug put my case above other cases.

I hope I can get this thing resolved in time to make my deadline, but I'm sure my client will forgive me if I don't.
 
I didn't use Photoshop. All the icons came from a JPG that was renamed to a PNG and resized as necessary.

Anyway, all the files are on the system and Xcode is pointing to the right place.

A JPEG that was renamed to a PNG? What?

You can't rename a JPEG with the extension PNG and have it magically become a PNG. You have to load the JPEG and then save the file to the new format. Photoshop can do that, and there are no doubt other programs that can also do that. I could write a Cocoa or Cocoa touch program that would do that, but the finder most definitely cannot.

If that is how you got your PNG file, that is the cause of your problem, plain and simple.
 
A JPEG that was renamed to a PNG? What?

You can't rename a JPEG with the extension PNG and have it magically become a PNG. You have to load the JPEG and then save the file to the new format. Photoshop can do that, and there are no doubt other programs that can also do that. I could write a Cocoa or Cocoa touch program that would do that, but the finder most definitely cannot.

If that is how you got your PNG file, that is the cause of your problem, plain and simple.

I have a picture here that shows otherwise.
 

Attachments

  • clean_cuisine_png.png
    clean_cuisine_png.png
    121.3 KB · Views: 194
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.