Default-568h@2x.png Pngcrush caught libpng error:

Source: Internet
Author: User

Resolve the following situation:

1. First of all, use Photoshop to open the PNG file and save it as a PNG file, and when it pops up, choose No.

2. Also need to look at the project inside the file, sometimes more than a few files with the same file name, remember to remove those not used, otherwise, if only a replacement, or there are errors.


Application in the simulator debugging a little problem does not, but one on the real machine debugging on the Copypngfile error, the error message is as follows:

Copypngfile/users/gongihou/library/developer/xcode/deriveddata/dlz-frborfduejxrajgpkfdaipygijow/build/products /debug-iphoneos/dlz.app/zhuangtai.png Dlz/zhuangtai.png

cd/users/gongihou/documents/910

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/gongihou/documents/910/dlz/zhuangtai.png/users/gongihou/library/developer/xcode/deriveddata/ Dlz-frborfduejxrajgpkfdaipygijow/build/products/debug-iphoneos/dlz.app/zhuangtai.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


Said is read the time did not find this picture, check the picture path, no problem, so Google, find two solutions:

1. In build settings, the project Compress PNG files set to No, the problem is resolved, but this setting, the IPA will be very large, it is not very ideal.

The preview (preview) on 2.mac opens the offending PNG file and then exports it to the PNG file or uses Photoshop to save the PNG picture as not interlaced (without interleaving), so there is no error when debugging the real machine.

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.