Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 9 Splash screen is black

My apps' splash screens are all plain black after upgrading to iOS9.

Does anybody know why this is? Some of them are using a .xib splash screen and some are using images, but they're all just black now. Does an app have to be built with Xcode 7 for the splash screen to work in iOS9? Has anyone seen some documentation on whether this is an intended breaking change from Apple?

Thank you!

UPDATE: Looking through the apps again it seems my older apps, which only had a Launch image and no .xib are still displaying correctly, so the issue seems related to the launch screen .xib

UPDATE2: As hagi pointed out in the comment, after re-installing the very same binary it starts working again so the cause is probably that launch images are generated from the xib whenever the app is installed, and stored somewhere, and then when upgrading to iOS9, for some reason (unintended Apple bug most likely), the generated images are cleared, and the app ends up with no splash. And that's why the old-fashioned launch images are still safe and not affected by this, cause they're already baked into the app.

I'll report it as a bug to Apple.

like image 779
andrrs Avatar asked Sep 17 '15 09:09

andrrs


People also ask

Is splash screen mandatory iOS?

splash screen is necessary to be added in xcode rather than an image as first page. Heard that splash/Launch images are necessary for ios apps,otherwise it will be rejected. I have included splash screen as the starting page background image with a delay of 2 seconds.

What is splash screen in iOS?

In iOS launch screen or splash screen will appear instantly while launching our app and it will replace immediately with the home screen of our app.


1 Answers

Easy fix. No need to mess with anything. Xcode 7 just prefers the images to be "Universal".

  1. Click on Assets.xcassets folder
  2. Click the + sign to Import from Project.
  3. Select all images

Done. Now your launch screen works and Xcode is happier.

like image 72
TokyoToo Avatar answered Sep 23 '22 15:09

TokyoToo