Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11 UILaunchImages has been deprecated, use launch storyboards instead Warning

Tags:

ios

xcode11

I just downloaded Xcode 11 Beta 4 and when I want to build my Swift 4 project gives me:

UILaunchImages has been deprecated, use launch storyboards instead

How can I fix it?

like image 504
SwiftDeveloper Avatar asked Jul 17 '19 21:07

SwiftDeveloper


3 Answers

Please read the release notes for Xcode 11 beta 4:

Known Issues

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.

like image 90
rmaddy Avatar answered Nov 07 '22 15:11

rmaddy


  1. Xcode -> File -> New -> File... -> Launch Screen.

  2. Select Target -> Build Settings -> Search "LaunchImage" & delete string from (Debug and Release) Asset Catalog Launch Image Set Name.

  3. Select "Assets.xcassets" & remove LaunchImage from it.

  4. Build & Run.......enjoy

like image 24
thevikasnayak Avatar answered Nov 07 '22 14:11

thevikasnayak


  • 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.

like image 28
Bikeboy Avatar answered Nov 07 '22 15:11

Bikeboy