问题
I have Xcode version 12.0.1. I have run the app on simulator with ios 14, the launch screen working fine it shows the image I want to show(splash Screen), but when I run the app on real device which has ios 14.2 the launch screen just appeared to be white. can some one help me with this thanks in advance.
回答1:
Faced the same problem. The issue was the size of the image used in the launch screen storyboard. This lead to the whole launch screen just being black.
Solution 1: What fixed it in our case was:
- Choose a smaller size image
- Delete App from device/simulator (Sometimes required)
- Restart device/simulator (Sometimes required)
The main reason is the larger image so just replace it with a smaller one.
Solution 2: Place your splash screen image outside the Images.xcassets folder. (But the issue with this approach is if you are supporting Dark Mode then it's not possible anymore to set a different image for dark and light mode.)
来源:https://stackoverflow.com/questions/65033765/ios-app-launchscreen-storyboard-displays-white-on-ios-14-2