iOS 9 Splash screen is black

2019-03-08 09:28发布

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.

15条回答
一夜七次
2楼-- · 2019-03-08 10:05

With me uninstalling the app, or rebooting the device didn't help. I used XCode for 5 more minutes, which is the mean time between failure in XCode and it gave "Unkown error occurred" error, which was very helpful. Of course as an experienced XCode developer I knew what to do, force-quit, clean the project, rebuild.

The first error was solved meanwhile as I had forgotten about that.

查看更多
混吃等死
3楼-- · 2019-03-08 10:07

In the storyboard 'Clears Graphics Context' box unchecked then It works.

查看更多
仙女界的扛把子
4楼-- · 2019-03-08 10:12

I had the same issue with the new iOS 9 project I built using Unity (5.2). To fix that I added the image that I want to show as the launch image to the LaunchScreen-iPad.xib file's Image view.

查看更多
小情绪 Triste *
5楼-- · 2019-03-08 10:13

Starting from iOS9 and Xcode 7 you are required to provide a LaunchScreen.storyboard for your launch screen in order to support the new multitasking feature on iPad.

To opt out of being eligible to participate in Slide Over and Split View, add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES.

查看更多
forever°为你锁心
6楼-- · 2019-03-08 10:13

Just to point out that once again (as this solution didn't appear in answers, and I've personally lost around two hours when "fixing" that), sometimes, especially when the app is in active development/debugging, it requires iOS device to reboot for the launch screen to be fixed.

查看更多
ら.Afraid
7楼-- · 2019-03-08 10:15

The problem maybe because missing image size: .png, @2x.png, @3x.png at LaunchScreen.xib

I made loading screen by LaunchScreen.xib In this xib has load a image launch.png But there are missing size launch.png, just exist launch@2x.png and launch@3x.png After add missing image: launch.png, black square bug is gone.

查看更多
登录 后发表回答