'iOS App shows black screen after succesful install on device using Xcode 12.5

I am trying to install an app using Xcode 12.5 on my personal device which is an iPhone 7 plus running iOS 15 underneath.

I got it to work after much hassle by adding iOS 15 device support files, but, after the app installs and launches itself, I get a black screen for like a minute or two and then the app works fine.

However, if I debug it takes approximately 30-40 seconds from jumping to one breakpoint to another and it consumes a lot of time.

I have tried scouring for a lot of information on this but no luck. Any solution for this would be appreciated.



Solution 1:[1]

You probably disabled your Splash screen that is why black screen appears. Go in your LaunchScreen.storyboard file, there you will find a Screen Controller. Make it story board entry point and give it a background color of your choice.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ghulam Mustafa