Cocos2dx3. x + xcode7.3: "libpng error: CgBI: unhandled critical chunk", libpngcgbi

Source: Internet
Author: User

Cocos2dx3. x + xcode7.3: "libpng error: CgBI: unhandled critical chunk", libpngcgbi

Today, cocos2dx3.11.1 + xcode7.3.1 is used for development. The following problems are encountered after a new project is created:

Run the project on the iphone (ios9.3.5) real machine (no problem occurs with the virtual machine that comes with xcode)

Auto sprite = Sprite: create ("HelloWorld.png"); after creating the sprite, the sprite is NULL,

An error is reported during running:

Libpng error: CgBI: unhandled critical chunk

 

Solution: Search for png in Build Settings of the project, find the relevant configuration items as follows, and change the second item to "NO". If you run the project again, there will be NO problem.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.