Image/jia_mousedown@2x.png Pngcrush caught libpng error:not a PNG file similar error handling

Source: Internet
Author: User

/image/jia_mousedown@2x.png Pngcrush caught libpng error:not a PNG file.

Application in the simulator to debug a little problem does not, but one put on the real machine debugging on the copypngfile error, compiler errors are as follows:

While Reading/users/avepoint/desktop/**/**/image/jia_mousedown@2x.png Pngcrush caught libpng error:

Not a PNG file.

Command/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/usr/bin/copypng emitted Errors but did a nonzero exit code to indicate failure


copypngfile/users/avepoint/library/developer/xcode/deriveddata/**-eapmjmcpwpwpvcazuqcyashswpze/build/products/ Debug-iphoneos/**.app/hsj.png **/image/hsj.png

cd/users/avepoint/desktop/melon/xmppworking_realphone/**

Export 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/avepoint/desktop/**/**/image/hsj.png/users/avepoint/library/developer/xcode/deriveddata/**- Eapmjmcpwpwpvcazuqcyashswpze/build/products/debug-iphoneos/**.app/hsj.png


Error message prompts said that the picture was not found when the picture, check the picture path, no problem.

Solution:

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.

2.mac to overwrite the source file with Preview (preview) to open the offending PNG file, and then re-export the PNG file or save the PNG picture as not interlaced in Photoshop (not interleaved). This way when the real machine debugging there is no error.

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.