简体   繁体   中英

Old Launch Screen and black display after iOS app update

I made an iOS app with Xcode and Swift. In v2, I also updated Launch Screen and Launch Images.

I first installed v1 of my app from the App Store. When the new, v2, was available from the App Store I updated my app on my devices. That's an iPhone 5s with the newest iOS and an iPhone 7 Plus with the newest iOS.

After updating my app on the iPhone 7 Plus it still showed up the old Launch Screen. Restart didn't help. I had to delete and reinstall the app to get the new Launch Screen shown up.

On iPhone 5s I didn't get any Launch Screen or Launch Image, I got a black screen for the time the Launch Screen shot get shown. I deleted and reinstalled the app. That didn't help. I also had to restart the device after reinstalling the app to get the right v2 Launch Screen.

Why that strange behavior? What can I do? I cannot ask my users to reinstall the app and restart the devices.

  • After updating the Launch image, delete the application cache which is stored in DerivedData folder.

  • If you are using xib or storyboard for displaying LaunchScreen move the images into an asset catalog, rather than using the png filenames.

The only workaround that works for me was to add the images outside Images.xcassets folder. After modified this and rebuild the app, it worked expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM