Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Launch Screen Asset Catalog not working

Tags:

I believe I am making a silly mistake. But I cannot figure it out.

I have an image named Default.png that I have added to my project. Now when I go to General and then Launch Images I drag and drop this Default.png to the 2x window for my app. When I go to build the project and try it, I get this error:

"The launch image set named "LaunchImage" did not have any applicable content."

What's the problem here? I've also seen that simply dragging and dropping the Default.png should do it, but I think that's for older versions.

Any ideas?

Thanks

like image 574
zburns12 Avatar asked Oct 21 '13 01:10

zburns12


2 Answers

Search for LaunchImage keyword in your .plist file and delete it. Then, try assigning the image again by dragging as you already did before...

like image 168
emreoktem Avatar answered Sep 20 '22 20:09

emreoktem


This case raised in Xcode 5.0 + iOS 7. Apple use Images.xcassets to group App Icons, App Launch (Default) Images in Xcode 5.0 + iOS 7.

For solving the problem of Asset Catalog Compiler Error The launch image set named "LaunchImage" did not have any applicable content.

Approach: Putting suitable size of images into LaunchImage. For example: Should be 640x960 dimensioning in iPhone Portrait iOS7 2x. Should be 640x1136 dimensioning in iPhone Portrait iOS 7 R2.

Reference from iOS App Programming Guide:

Create and Set iOS Launch Images

Launch images are displayed while your app is launching on iOS. A launch image matching the device resolution appears as soon as the user taps your app icon.

App Launch (Default) Images

Specify the launch images for your app in your Xcode project settings. In Xcode 5.0, specify these images on the General tab of your project settings; in older versions of Xcode, this tab may have a different name. Xcode places your launch image files at the top-level of the app bundle and configures other project settings as appropriate. Specifically, Xcode adds the UILaunchImages key to your app’s Info.plist file automatically if your app runs on iOS 7 or later. That key tells the system the name of your app’s launch image files. For earlier versions of iOS, the system uses the launch image filenames to decide which image to load.

like image 22
Jasen Avatar answered Sep 22 '22 20:09

Jasen