Hlung
Hlung

Reputation: 14308

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

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 “[email protected]” 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

Upvotes: 27

Views: 25617

Answers (7)

Hlung
Hlung

Reputation: 14308

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 ([email protected]) 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.

Upvotes: 15

Malenko
Malenko

Reputation: 31

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

Upvotes: 3

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

Upvotes: 0

Lloyd Sargent
Lloyd Sargent

Reputation: 614

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:

enter image description here

That should solve your problem.

Upvotes: 1

pulp
pulp

Reputation: 1828

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"

Upvotes: 2

Zeeshan
Zeeshan

Reputation: 586

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.

Upvotes: 15

bobobobo
bobobobo

Reputation: 67276

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:

enter image description here

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

Upvotes: 4

Related Questions