iOS launch screen does not update

前端 未结 8 1949
独厮守ぢ
独厮守ぢ 2021-01-04 06:27

I\'ve updated launch screen on an enterprise app, but it won\'t update when installed on an iPad with the existing app. I\'ve tried completely deleting the app before instal

相关标签:
8条回答
  • 2021-01-04 07:07

    In xcode, under Assets.xcassets, I clicked on LaunchImage and then unchecked Universal, checked iPhone, unchecked iPhone, and checked Universal again. Then ran build and it cleared the old image.

    0 讨论(0)
  • 2021-01-04 07:07

    Solution Again, thanks to the thread I have referenced above I found a way to solve this issue - name your new image differently from the one there was before in case your new one has the same name as the old one and put it out of the *.xcassets folder to the project directory and reference it in your UIImageView. And that's it.

    0 讨论(0)
  • 2021-01-04 07:08

    I just had this problem and i found that deleting the app off the device or simulator, then restarting the device or simulator seems to fix the issue.

    I found just restarting the device didn't work.

    0 讨论(0)
  • 2021-01-04 07:08

    I had tried many kinds of solutions and restart your iPhone is the only way.

    0 讨论(0)
  • 2021-01-04 07:16

    See Rambo's post about the issue. At least on iOS 13 you can clear this cache yourself:

    import UIKit
    
    public extension UIApplication {
    
        func clearLaunchScreenCache() {
            do {
                try FileManager.default.removeItem(atPath: NSHomeDirectory()+"/Library/SplashBoard")
            } catch {
                print("Failed to delete launch screen cache: \(error)")
            }
        }
    
    }
    
    0 讨论(0)
  • 2021-01-04 07:27

    The answer by Steve still holds as of iOS 13.2.3, but I wanted to add a few more items just to back up this point that otherwise exceed the restrictions of a comment.

    For starters, I did delete the app, restart the device, etc but because this issue occurs when a user updates through the app store, those fixes are simply not viable.

    Then, I decided to take more drastic actions within the app to try and remedy this. These actions were taken with TestFlight builds.

    In my particular case, the problem stems from a version string that misrepresents the installed version.

    Step 1 then was to simply remove the UILabel in question. Re-running the app would still cause the label to appear in the app.

    Step 2 then was to create an entirely new LaunchScreen storyboard and set it as seen here:

    Launching the app still presents the old launch screen.

    This leads me to believe that something in the project structure is the source of the caching, and no reasonable changes to the LaunchScreen by the developer are going to get around this.

    Update

    The app has been released to the Appstore, and using the official store release, the app presents the correct launch screen.

    0 讨论(0)
提交回复
热议问题