Launch Image Not Showing Up in iOS Application (Using Images.Xcassets)

Launch Image not showing up in iOS application (using Images.xcassets)

I finally figured it out!

So, in your project settings, go to the section that says: App Icons and Launch Images

Remove the information found in Launch Screen File if you do not want to use .xib file.

Then, in Launch Image Source, Choose to migrate and if you have already created your LaunchImage file and added the images to it. Then click the asset catalog that shows up. The name of the one that contains your Launch Images.

This will create a new Launch-Image2 in your image set. To use the one you already have created, click the drop-down menu next to Launch Image Source. And you should see your other Launch Image set. Choose it. Then re-build your application and run it. You should see your Launch Image. =)

Hope this helps!

Note: it won't delete your images that you already have in the asset catalog. It will just create a new LaunchImage asset set.

Reference: https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/chapters/StoringAppIconsandLaunchImagesinanAssetCatalog.html

Adding images to Assets.xcassets, won't display on LaunchScreen.storyboard

Since the image is cached in iOS for quick launch, it does not get updated right away. These are the steps to follow if you want to see the new launch image appear.

The following steps should erase the cached image that was on the device prior, and display the new launch image accordingly upon rebuild in step 8.

Step 1 : Update the image in the Assets.xcassets

Step 2 : In Xcode, go to Project -> Clean

Step 3 : In Xcode go to File -> Preferences. Navigate to the Locations Tab, and click the little arrow next to derived data

Sample Image

Step 4 : Delete the DerivedData folder that opens up after clicking the arrow

Step 5 : Restart Xcode

Step 6 : Delete the app on the test device

Step 7 : Restart the test device

Step 8 : Build & Run the app on the test device

iOS - Some images not showing up in launch screen

Turns out that the physical device caches the images regardless if i removed the application or not. The only thing that actually worked was to 1. Remove the application and 2. Reboot the device. Only then the images would disappear. Don't know if this is a bug or not as of iOS 9.2



Related Topics



Leave a reply



Submit