xcode运行到真机报错
While checking alphas in /Users/qianhaiyuan/Desktop/hy_mobile_ios/hy_Iphone/images/firstpage/log_reg_board.png pngcrush caught libpng error: Not enough image dCommand /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
原因1. 是提示的png并不是ps导出的png,而是手动修改jpeg后缀名为png,在模拟器上不会报错,但在真机,不 识别这种所谓 的“png”图片。(随便批下美工)
原因2:这是因为png图片的问题,png图片在存储的时候有一个NOT INTERLACED/INTERLACED(无交错/交错)的选项,因为设计师在切图的时候的存储错误,图片在XCode中就会报这个错误,但是还是会编译成功并运行,请设计师将图片重新按无交错存储就行了。
解决方案:
用ps重新导出png就ok了
附加错误信息:
CopyPNGFile /Users/qianhaiyuan/Library/Developer/Xcode/DerivedData/hy_Iphone-fndcbhhncozyqxamvodebsxiwyod/Build/Products/Debug-iphoneos/hy_Iphone.app/log_reg_board.png hy_Iphone/images/firstpage/log_reg_board.png cd /Users/qianhaiyuan/Desktop/hy_mobile_ios 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/qianhaiyuan/Desktop/hy_mobile_ios/hy_Iphone/images/firstpage/log_reg_board.png /Users/qianhaiyuan/Library/Developer/Xcode/DerivedData/hy_Iphone-fndcbhhncozyqxamvodebsxiwyod/Build/Products/Debug-iphoneos/hy_Iphone.app/log_reg_board.png While checking alphas in /Users/qianhaiyuan/Desktop/hy_mobile_ios/hy_Iphone/images/firstpage/log_reg_board.png pngcrush caught libpng error: Not enough image dCommand /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 (null): While checking alphas in /Users/qianhaiyuan/Desktop/hy_mobile_ios/hy_Iphone/images/firstpage/log_reg_board.png pngcrush caught libpng error: 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
相关推荐
xcode 真机调试包 13.0.zip
需要的请下载, 复制到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 然后把你需要的调试包拖进去
Xcode9打包过的项目,用Xcode8运行时报错,缺少FileProvider.framework文件,下载后解压放在Xcode的“Frameworks”目录下即可。
xcode真机调试包 1、下载iOS12.4真机资源包 2、打开Xcode显示包内容,然后一步步找到DeviceSupport文件夹(Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport),将真机包拷贝进去 3、重启Xcode,然后...
xcode 16.1真机调试包
这是16的真机调试包,文件直接解压放到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Xcode iOS 16真机调试包 开发调试 iOS16适配
xcode 4.5.2 免证书真机调试 生成ipa 教程.docx
iOS 15.0的真机调试文件,放到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 目录下重启XCode即可。
xcode ios12.3真机调试包 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
进入/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 然后将解压后的文件夹直接添加进去,重启Xcode即可。
xcode 真机调试包 13.3.zip
Xcode真机调试包15.6.zip
Xcode 12.3 真机测试包 测试包路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Xcode iOS13.1真机调试包,下载并解压后,后前往文件夹里面,复制输入以下地址:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 把真机包放进去,完全退出 Xcode 并重启,...
xcode免更新IOS17.0真机调试包。
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 前往文件夹 拖进去就可以了
Xcode iOS14.6真机调试包, 内含百度云下载链接及密码
将FileProvider.framework和IOSurface.framework复制到文件夹,xcode8报缺失文件的那个路径
xcode12.3最新真机/模拟器包,