Build app with Xcode 4 - it always show some error about PNG image

前端 未结 22 991
走了就别回头了
走了就别回头了 2020-12-07 12:46

When I build my app with Xcode 4 it always show this error message:

CopyPNGFile /Users/michaelchen/Library/Developer/Xcode/DerivedData/iMusicBox-boeawugacmha         


        
相关标签:
22条回答
  • 2020-12-07 13:15

    I got the same error. Turned out my pngs where actually jpeg. XCode showed them properly but an iOS device didn't. Solved it by saving the jpg as png.

    0 讨论(0)
  • 2020-12-07 13:17

    Mine weren't interlaced but I kept getting odd errors from pngcrush. Eventually I deleted the files not just disk but through XCode. I added them back in one by one by drang-and-drop into XCode, building after each, expecting to hit one that had an issue. I never did. My conclusion is that you really need to manipulate the files from XCode and not the filesystem at all.

    0 讨论(0)
  • 2020-12-07 13:17

    In my case, I had to remove all PNG files from the folder and then re-adding the files again without drag-and-dropping the images into the Xcode UI (under Launch Images). The latter was key in my case, first adding the files to the folder and then dragging them into the UI somehow cause a duplicate which screwed it all up. Try that out if nothing else's working for you.

    0 讨论(0)
  • 2020-12-07 13:18

    May be help you. Check Alpha Channel property as shown in attached screenshot. It should be YES if its NO.

    enter image description here

    0 讨论(0)
提交回复
热议问题