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

前端 未结 22 938
走了就别回头了
走了就别回头了 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 12:53

    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)
  • 2020-12-07 12:56

    I had to remove png files and then go to Targets -> AppName -> Build Phases -> Bundle Resources and remove the files from there too.

    0 讨论(0)
  • 2020-12-07 12:56

    I had the same problem. I resolved it removing the duplicate pictures. Check out in different folders. That was my problem.

    0 讨论(0)
  • 2020-12-07 12:58

    I had to remove the references to PNGs and add them to the project again. Anyone has a better solution?

    0 讨论(0)
  • 2020-12-07 12:58

    Error:

    While reading /Volumes/Mac OS/RDC/Workpot/RestApp/RestApp/default1024_768.png pngcrush caught libpng error: Not a PNG file..

    Solution:

    1. I have opened "default1024_768" file in PaintBrush tool and saveAs PNG file with same name.
    2. Replaced the Icon file in Xcode project.
    3. Clean --> Build

    That's All its work like charm

    Hope this will help someone.

    0 讨论(0)
  • 2020-12-07 12:59

    I solved this error, it's appear when you rename the images after put into the project, so for solve this problema first should delete the current images, rename files from finder and later copy this images into the project.

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