Xcode 11 UILaunchImages has been deprecated, use launch storyboards instead Warning
Please read the release notes for Xcode 11 beta 4:
Your app might fail to build if it contains a launch image. The failure message resembles the following: “The launch image set named <image set name> did not have any applicable content.” Launch images are deprecated and should be removed; use a launch storyboard or .xib file instead. (50210495)
Workaround: Clear the build setting ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME.
Xcode -> File -> New -> File... -> Launch Screen.
Select Target -> Build Settings -> Search "LaunchImage" & delete string from (Debug and Release) Asset Catalog Launch Image Set Name.
Select "Assets.xcassets" & remove LaunchImage from it.
Build & Run.......enjoy
- add a new storyboard to your project
- name it LaunchScreen.storyboard and save
- add a new view controller to your LaunchScreen, add an imageView, and reference your launch image
- make LaunchScreen.storyboard your initial view controller in the Attributes Inspector (make sure to uncheck the old initial view controller)
- in your General settings (App Icons and Launch Images) in the Launch Screen File dropdown, select LaunchScreen
After testing, to get rid of compiler warnings, delete the LaunchImage folder in Images.xcassets, and in Build Settings, delete LaunchImage (in Debug and Release) from Asset Catalog Launch Image Set Name.