Splash screen still displayed although I removed the Default.png - ios

I don't want any more the splash screen, I have removed the Default.png from the resources file, also I have removed the sleep function. However, when I run the app, the splash screen is still there, can you help me to figure out why it still displayed? Thanks in advance :)

Did you clean the targets after you removed the image? Xcode sometimes requires a clean between builds in order to notice changes to your images. And if that does not work, uninstall the app from the simulator and rebuild.

Try cleaning the targets (Cmd+Shift+K), and if this doesn't work try to delete the app from the simulator/device and to reinstall it.

iOS always displays a "splash screen", AKA launch screen. When you don't provide an image, it initially shows a black screen. When the quits the app, iOS takes a screenshot just after your code return the applicationDidEnterBackground: and uses it as the new launch image (as long as your app doesn't quit).

I experienced the same issue and none of the cleaning activities nor uninstalling the app from simulator helped.
From my point of view there was a bug in xcode 3.x which is now properly fixed in V. 4.x

Related

Flutter splash screen Xcode white background for first 2 seconds

Flutter splash screen Xcode white background for first 2 seconds. After that, it correctly shows the images from my storyboard... I tried everything to get rid of that first white blank screen, but I can't. Can someone help, please?
Removed Launchscreen.storyboard and regenerated.
Removed app from
device and reinstalled
Tried everything here:
Launch Screen not displaying iOS 8
Changed these configurations.
Bot nothing works at all. I am using Flutter and flutter_native_splash and generated the icons with this, but they did not help either.
Note: I noticed that I only see launchscreen and main as options in general > app icons and launch images in Xcode. Shouldn't I be able to see the option launschreen_storyboard as well?
Note: Android works fine. It only is a problem at iOS.
I have fixed the issue by restarting my device. Apparently this is an iPhone/iOS cache bug.

App icon not appearing in app switcher in ios

I have recently developed a set of icons for my ios app using https://makeappicon.com. This provides a folder of appropriately sized images. I then have dragged each of these images into the appropriate slot in the AppIcon section in Assets.xcassets. The icon shows up fine in on my phone screen but not in the app switcher (see circled in image). There are no errors showing.
I have:
- Cleaned build folder and rebuilt
- I have restarted my iPhone
- I have manually placed all the images in the slots
- I have also tried replacing the original AppIcon folder with the one provided by make appicon
All to no effect. Be grateful for any suggestions.
Uninstall App → Restart Device → Install App
Just putting here for the sake of working answer !
As #cobberboy has mentioned in comment, doing above works - verified
I have been trying to figure out this issue, as I multiple times changed the icons removed the build, took new builds etc, but the app switcher icon was the default icon.
I have tried the app on a new phone and the desired icon was showing. So my guess is that the app switcher, (also apple watch OS's app switcher) has some sort of hardcore cache machanism.
If anyone coming from Google facing this issue, not sure how to flush this cache, but you can go ahead and ship your app, as this cache is only on your device.
Good luck!
Ensure you have provided icons for all sizes, deploy, then restart the device to clear any caches.

Trouble with changing image on splashscreen

everyone. I have one more question about trouble with changing the picture on the launch screen. If you change your picture on launch screen, you will see your old picture. I read about it iOS Keeping old launch screen and app icon after update. How long you will see your old picture if you don’t restart your device?
Follow below steps:-
Uninstall App.
Restart Device.
Note:- This issue will not come in Simulator

Splash screen not changing after upgrading to newer version

This problem has been discussed on SO already but nothing seems to help me. Users of the app that I'm working on up install new version, which has a new splash screen and that new screen is not displayed. The old one is displayed on launch. I tried changing name of the splash screen file, but the app keeps showing the old screen. Any ideas, guys?
I ran into the same problem and it's ridiculous... The only one way was to solve this:
delete your app from your device (even clean your project: command+shift+k)
reboot your device :D :D :D funny, isn't it?
reinstall your app from xcode
and voila ... new splash screen is on your iPhone
I managed to solve this by starting using xib file for launch instead of an image.

iOS launch screen does not update

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 installing a new version, but it still launches with the old launch screen image.
I've tried installing the new app on another iPad where this app was never installed and the new launch screen appears as expected. Both iPads run the same iOS v9. The app was built with xCode 7.2
In summary I've tried the following scenarios:
updating existing app (version 1) on iPad A - with a new app (version 2)
iPad A, loads the new app v2 with launch screen from version 1
installed new app (version 2) on iPad B, which never had this app.
iPad B, loads the new app v2 with correct launch screen
then I installed old app version 1 on iPad B
iPad B, now loads the old app v1 with launch screen from version 2
It seems the iPad somehow caches the launch screen from the very fist install regardless which version it is. Deleting the app and reinstalling does not seem to help and it does not look code related as the correct launch screen images was loaded on iPad B
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.
I had tried many kinds of solutions and restart your iPhone is the only way.
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.
Simulators and iPhone caches the launch images.
this can help you
1>Clear the derived data under your developer/xcode folder
2>reset the device by pressing home button and lock button at same time
3>Push your code to device and it will work, if this doesnt work then creat ipa file and install using itunes after resetting the device and it will show the new launch images
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.
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.
Just delete app from simulated iPhone home screen.
On iPhone 11 Max version 2-finger click and drag up from outer margin of the iPhone which will bring you to the home screen and exit your simulated app.
Then 2-finger click and hold your app, delete app and close simulator.
Open Xcode and click play button to run your simulation and the launch screen should be updated.
P.S. Deleting Xcode cache and derived data couldn't hurt.
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)")
}
}
}

Resources