7

In iOS 10 I used a Launch Screen File instead of Launch Images:

enter image description here

After converting to Swift 4 in Xcode 9 for iOS 11 I get the following warning:

Missing "Default-568h@2x.png" launch image

enter image description here

Why is a launch image needed when there is already the launch screen?

Manuel
  • 14,274
  • 6
  • 57
  • 130
  • Your answer can be found in the link below [Your Answer](https://stackoverflow.com/questions/11117556/is-a-splash-screen-necessary-for-an-iphone-app) – Monwell Partee Sep 21 '17 at 03:15
  • @MonwellPartee Launch Images are not required when there are Launch Screens. It seems to be a bug in Xcode, see my answer below. – Manuel Sep 21 '17 at 03:19
  • I agree, seems to be a bug since Launch Images are now deprecated but still shows up. – Mike Flynn Dec 15 '19 at 22:35

2 Answers2

7

The solution was to temporarily add a launch image asset catalog.

  1. Click on Use Asset Catalog...:

enter image description here

  1. Choose to create a new asset catalog:

enter image description here

  1. Switch back to Don't use asset catalogs:

enter image description here

  1. Delete the automatically created Images.xcassets.

  2. The warning is gone.

Manuel
  • 14,274
  • 6
  • 57
  • 130
  • Do you know what difference this makes to the xcodeproj? – Simon Oct 05 '17 at 09:01
  • @Simon It apparently clears our artifacts. Which exactly I don't know as I cannot reproduce the bug to get those artifacts. However, the procedure in the solution seems to be safe. No problems since then. – Manuel Nov 15 '17 at 13:22
  • This doesnt work with Xcode 11 / iOS 13 because the launch images source is now gone. – Mike Flynn Dec 15 '19 at 22:34
0

In Xcode 9.4, if we click on iOS 8.0 and later, LaunchImage will show up a slot called iPhone X Portrait iOS 11+

enter image description here

You need to refer to Static Launch Screen Images guide https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/. Here is the sizes for iPhone X

iPhone X    portrai 1125px × 2436px landscape 2436px × 1125px

enter image description here

onmyway133
  • 45,645
  • 31
  • 257
  • 263
  • The question title did not fully reflect the question content, so I updated it. The question is: why is a Launch Image needed *despite already having a Lauch Screen File*? As you see in my answer, it was due to a bug in Xcode that messed up the project settings. – Manuel Jun 14 '18 at 09:55