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条回答
可以哭但决不认输i
2楼-- · 2019-03-08 10:15

We always need to add proper size of image if we are using image.Assets for Launch image and select correct options for launch image Source on Clicking project navigator>General>AppICons and launch images > launch image Source > BrandAssets

If size of launch image is not correct with respect to device on which you are try to running app, then your app will run as iPhone 4 showing black top and bottom bars.

查看更多
萌系小妹纸
3楼-- · 2019-03-08 10:20

I had the exact problem and had a black launch screen after using Xcode 7, and at first re-adding the images in Launch-Screen.xib worked but it went black again.

I fixed this permanently by moving the images referenced by Launch-Screen.xib into an asset catalog, rather than using the png filenames.

查看更多
Rolldiameter
4楼-- · 2019-03-08 10:23

Same problem here after I updated to iOS 9. Re-installing the app from the App Store seems to solve the problem. I guess, it's an iOS 9 glitch.

查看更多
干净又极端
5楼-- · 2019-03-08 10:23
  1. Black screen default come because, iOS strictly enforces some a startup images it can be black or any images.
  2. Use UILaunchImages key to the Info.plist file and use a dictionary to describe each launch image. Change setting in your project to ppoin towards Asset Catalog
  3. check following references

I hope above information will help you.

查看更多
啃猪蹄的小仙女
6楼-- · 2019-03-08 10:23

I had the same problem. I downloaded Xcode 7 and upgraded my project to swift 2.0. After recompiling the issue was gone at first but then it started to happen again later on during my tests on other unrelated code.

So far two things get this fixed, in both cases temporarily. Remove the background image, add the same image with another name. New image works for a while. Second, is you resize the image view, and in most cases the image starts to work again, but only for a while.

I submitted my new update to iTunes connect while I was seeing the splash screen. Not sure if this is an operating system issue or app api issue that gets corrected with a recompilation of code.

I also tried enabling and disabling the new Bitcode feature but that didn't help.

查看更多
【Aperson】
7楼-- · 2019-03-08 10:27

I noticed the same issue on the launch screen and have a black square in the middle of the screen.

It might be due to missing images at the specified formats .e.g @2x, @3x etc.

查看更多
登录 后发表回答