Missing Retina 4 launch image. How to ignore this error?

可紊 提交于 2019-11-29 01:46:55

问题


Updating Xcode with SDK 6.0 gives you an error when trying to compile your project.

Missing Retina 4 launch image. A launch image named “Default-568@2x.png” is required to run at native resolution on Retina 4 devices. Would you like Xcode to add this image for you?

When clicking add, it creates a black launch image of size 640x1136. I know I can easily replace this image with an appropriate one. But XCode is giving me an error and forcing me to have this file. If I don't want to include this, how can I skip this error and just use the shorter launch image already there?

Screenshots: http://spacetech.dk/xcode-missing-retina-4-launch-image.html


回答1:


Go to project settings, select General tab, and go to section mentioned in below image. Here, you only need to specify Launch Image from assets. Hope this helps.




回答2:


Update: seems like you can’t ignore his error. It will eventually fail when you upload the binary. Just provide the retina image. Users will like it :D

—————

It appears to be just a warning when I added that file and then later remove it. This is weirdddd.

FYI, by including a Retina 4-inch launch image file (Default-568h@2x.png) in your target summary, it will force the app to be stretched to full 4-inch display. In order to keep your app to run in 3.5-inch screen mode again, other than removing the 4-inch image you also have to **clean your project AND delete the app.




回答3:


You can't really ignore this error. If you do, you will fail product validation anyway.

This is the text of the error you get:

So add a 568 launch image, there isn't any way around it.




回答4:


Actually you need to provide a set of launch images for your case.

First, go to Launch Image Attributes Inspector and tick desired device orientations for:

iOS 8.0 and later

iOS 7.0 and later

and then provide appropriate image sizes for the empty slots.

For portrait orientation sizes are:

768x1024 - iPad Portrait @1x

1536x2048 - iPad Portrait @2x

640x1136 - Retina 4

640x960 - iPhone Portrait @2x

1242x2208 - Retina HD 5.5"

750x1334 - Retina HD 4.7"




回答5:


I had a similar problem after I moved my info.plist file into a new group. To fix the problem I reselected my plist file by clicking the "Choose Info.plist File..." button under identity in the general tab of the project file




回答6:


Well, the easiest solution for me was to create the Launch Screen.storyboard and specify that. This gets rid of the need for launch images (unless you really want to go through that song and dance).

Specify the following:

That should solve your problem.




回答7:


I had this issue. I cleaned my projet after uploading my new image 640x1136 and the notification disapeared. (Product -> clean ).



来源:https://stackoverflow.com/questions/12596991/missing-retina-4-launch-image-how-to-ignore-this-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!