Failed to write image data for the launch image set from "LaunchImage.launchimage/1242_2208.png" to

来源:互联网 发布:电脑淘宝怎么复制链接 编辑:程序博客网 时间:2024/06/12 00:29

添加启动动画,模拟器有,真机没有。报错是什么原因?

/Users/zhangzhendong/Desktop/firstp2p/410/FirstP2P/Images.xcassets: Failed to write image data for the launch image set from "LaunchImage.launchimage/1242_2208.png" to "/Users/zhangzhendong/Library/Developer/Xcode/DerivedData/FirstP2P-eqdzcsmlnabzsjbupdqfbhpmcyyi/Build/Products/Debug-iphoneos/FirstP2PNoTK.app/LaunchImage-800-Portrait-736h@3x.png".

这个不是因为尺寸不对,而是因为你所用的启动页的图片改过格式。例如:原来的格式为.ipg后来被改成.png了。

解决的方法很简单的,那就是重新导出一遍就行了,不要直接改格式,也不要去麻烦你们那些UI大人们。

导出的方法:1.打开要更改的图片

2.打开文件->导出

3.然后在格式上面选择png。

4.重新替换图片。

对于命名来说,最好图片名字中不要出现".",这个有可能会导致有些机型无法适配,识别不出来,尤其是启动图。

1 0
原创粉丝点击