Black screen after Launch Screen

I'm having an issue in which when my app launches, the launch screen displays, then a black screen flashes, and then my app displays its opening scene. Do you have any ideas as to how to remove this black screen? It's quite jarring for the user
Have a look here:
https://developer.apple.com/forums/thread/665358

and more specifically
https://stackoverflow.com/questions/63978396/launch-screen-not-working-on-ios-14-with-xcode-12
Seems that iOS 14 limits the size of images in Launchscreen. And not explained anywhere.
In the app that did not work on iOS 14, I have reduced from 7.3 to 0.6 MB and that solved everything.
If you have an image in the launch screen, check its size. If several MB, select a smaller one (reduce resolution will be OK). Try to limit to less than 100 kB.
Hey @Claude31

Thanks so much for all this info. I've reduced my launch screen down to 29 KB, but I'm still having trouble. I'll keep messing around with the sizes, but do you have any other suggestions based off of this (I'm not sure if it's relevant, but I did take note of it in Xcode)?


2020-11-06 16:41:18.179046-0800 Ridleys Rona Run[17764:2781073] fopen failed for data file: errno = 2 (No such file or directory)
2020-11-06 16:41:18.179100-0800 Ridleys Rona Run[17764:2781073] Errors found! Invalidating cache...
2020-11-06 16:41:18.221445-0800 Ridleys Rona Run[17764:2781073] Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x109e0e1f0>.
2020-11-06 16:41:18.222099-0800 Ridleys Rona Run[17764:2781073] Unbalanced calls to begin/end appearance transitions for <SDLuikitviewcontroller: 0x109e57fc0>.
2020-11-06 16:41:18.222171-0800 Ridleys Rona Run[17764:2781073] Unbalanced calls to begin/end appearance transitions for <SDL
uikitviewcontroller: 0x109e57fc0>.
2020-11-06 16:41:18.222194-0800 Ridleys Rona Run[17764:2781073] Unbalanced calls to begin/end appearance transitions for <SDLuikitviewcontroller: 0x109e57fc0>.
2020-11-06 16:41:18.222242-0800 Ridleys Rona Run[17764:2781073] Unbalanced calls to begin/end appearance transitions for <SDL
uikitviewcontroller: 0x109e57fc0>
Could you show the complete code of AppDelegate and SceneDelegate ?
@Claude31 I used a third party program, Stencyl, to build my app, so I'm not entirely sure how to show that aspect of the code, but I can send you my logs from running on the third party program (which runs through Xcode when building on my iPhone). Would that be helpful?
Thank you so so much

I can send you my logs from running on the third party program

Just try, but debugging through third party is usually hard…
\



I exported the logs via Xcode so hopefully that helps.
I've noticed that it seems to be missing images in an image set known as "Launch Screen". I'm not entirely sure of this sets purpose as the launch screen is a storyboard ad derives its images from a set known as "splash". On previous builds via xcode, I've deleted the empty image set, "Launch Screen," which obviously removes the warnings/errors, yet does not solve the issue of the black screen in between the launch image and the first display of my opening scene.

I hope this helps - thank you so much!!!
Hey @Claude31 !

Any suggestions based off of my logs? Anything else I can provide that might help?

Thanks again!

After reading tons of threads online and spending many hours trying to figure this out, I found a solution for eliminating the black screen that appears between the launch screen and the main app screen (something that I didn't see anyone else mention).

It is very simple: leave out the .storyboard extension of the name of the launch screen. With this small (and illogical) change, my launch screen remains visible until it is replaced by the actual app, no more black in between.

To solve this problem, I made this change in Info.plist:

From:

    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen.storyboard</string>

To:

    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>

You can also make this change by editing the "Launch screen interface file base name" property value to remove the .storyboard part of the name shown there.

I hope this helps others!

Black screen after Launch Screen
 
 
Q