Launch Screen not working on iOS 14 with Xcode 12
So here are a lot of good ideas, but I was able to finally solve the issue - it is more like a workaround. I needed to store the picture outside the Images.xcassets folder and then it started to work again. This is a very weird issue.
What's the easiest way to update an old iOS app with a .xib launch screen for the AppStore's new storyboard requirement?
- When you submit with a soon-to-be deprecated toolchain, you should get a warning about the submission via email. I can't recall for sure, but I think that once the toolchain is deprecated, Apple's servers reject the submission when you try to upload it.
- If your
.xib
is as simple as you say, it's probably easier to just re-create it as a storyboard. In addition, you can very likely copy the view in the.xib
and paste it into your storyboard. - Apple updates their SDK requirements every year. In other words, last year about this time they updated to require Xcode 10. And the year before that, the started requiring Xcode 9. If your app was built with Xcode 8, that means it has remained in the app store through two of these toolchain deprecations. It will continue to remain in the app store when requirements change to Xcode 11 this year.
iOS 14 Launch Screen storyboard doesn't display images on iOS 14 devices
Here's how I was able to resolve this for others who can't use the new launch screen API due to design restrictions:
Build using Xcode 11
Convert any images used in the Launch screen to PNGs
Rename the image assets in the catalog and update the
references in the Storyboard as well (this is important!)Clear the splash screen cache by calling this at the beginning
ofdidFinishLaunching
(only in debug mode!):
@try {
[[NSFileManager defaultManager] removeItemAtPath:[NSHomeDirectory() stringByAppendingString:@"/Library/SplashBoard"] error:&error];
} @catch (NSException *exception) {
NSLog(@"Failed to delete launch screen cache: %@", error);
}
after that my splash screen works on iOS 14 and prior as expected.
Related Topics
Iphone: How to Get Current Milliseconds
Uploading Image with Afnetworking 2.0
Extract Uiimage from Nsattributed String
How to Detect the Touch Event of an Uiimageview
How to Route Audio to Speaker Without Using Audiosessionsetproperty
iOS Background Audio Not Playing
Make a Uibutton Programmatically in Swift
iOS 13: Swift - 'Set Application Root View Controller Programmatically' Does Not Work
Adding Thousand Separator to Int in Swift
How to Hide Keyboard in Swift on Pressing Return Key
How to Rotate Text for Uibutton and Uilabel in Objective-C
Changing Vc Issue in Swift. How to Pass Data Between Views in Tab Bar Controller
How to Check If a View Controller Is Presented Modally or Pushed on a Navigation Stack
No Avplayer Delegate? How to Track When Song Finished Playing? Objective C iPhone Development
How to Implement the Uitapgesturerecognizer into My Application