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.