xcode运行到真机报错 While reading xx/BackgroundHomeScreen_5.png pngcrush caught libpng error:

转自:http://blog.csdn.net/shencaifeixia1/article/details/8976756

xcode运行到真机报错

[plain]  view plain copy print ?
  1. While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundHomeScreen_5.png pngcrush caught libpng error:  
原因是提示的png并不是ps到处的png,而是手动修改jpeg后缀名为png,在模拟器上不会报错,但在真机,不识别这种所谓的“png”图片。

解决方案:

用ps重新导出png就ok了


附上错误log:

[plain]  view plain copy print ?
  1. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundHomeScreen_5.png pngcrush caught libpng error:  
  2. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundHomeScreen_5.png  
  3. Command /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  
  4. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundHomeScreen@2x.png pngcrush caught libpng error:  
  5. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundHomeScreen@2x.png  
  6. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundHomeScreen_5@2x.png pngcrush caught libpng error:  
  7. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundHomeScreen_5@2x.png  
  8. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundHomeScreen.png pngcrush caught libpng error:  
  9. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundHomeScreen.png  
  10. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundLockScreen_5.png pngcrush caught libpng error:  
  11. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundLockScreen_5.png  
  12. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundLockScreen_5@2x.png pngcrush caught libpng error:  
  13. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundLockScreen_5@2x.png  
  14. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundLockScreen.png pngcrush caught libpng error:  
  15. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundLockScreen.png  
  16. (null): While reading /Users/yangeric/mIOS/MeiTu/MeiTu/Image/BackgroundLockScreen@2x.png pngcrush caught libpng error:  
  17. (null): Could not find file: /Users/yangeric/Library/Developer/Xcode/DerivedData/MeiTu-axtpdkzrafpqwueeqfkdldtmiyjn/Build/Products/Debug-iphoneos/MeiTu.app/BackgroundLockScreen@2x.png  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值