Error libpng: CgBI: raw critical snippet xcode 7.3

After switching to Xcode 7.3 and starting the project on the same, I got the following error:

libpng error: CgBI: unhandled critical chunk 

I installed Compress PNG Files in the setup of building the project target NO .

I cleaned and rebuilt the project, but still did not work and threw the error above.

Any suggestions / help to solve the above problem are welcome. Thanks in advance.

+6
source share
1 answer

In addition to disabling the flag Compress PNG Files in the build settings of the target goal of the project. I also turn off another flag, namely Remove Texture Metadata from PNG File . This resolved the problem. Error libpng: CgBI: raw critical fragment that occurs in Xcode 7.3.

In Xcode 7.3, the Remove Texture Metadata from PNG File flag is turned on by default, so even if you have a project running in earlier versions of Xcode that contained this flag as disabled, you also need to disable it again to overcome this problem.

Refer to the screenshot below, indicating the necessary flags that need to be disabled in the build settings of the landing page of the project in order to solve the problem above in Xcode 7.3.

enter image description here

+11
source

All Articles