Reputation: 1803
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
Upvotes: 25
Views: 50482
Reputation: 2725
Check and compare carefully if your image size matches the expected size. In my case I was using a wrong size, but when correcting the project built fine.
Check this attached image to see where you can compare them
Upvotes: 0
Reputation: 7764
In my case, with Xcode 7, the Images.xcassets
was missing from the Build Phases, under Copy Bundle Resources. Then I just added it manually and the problem was gone.
Upvotes: 1
Reputation: 5400
I had this problem as well. Make sure of a couple of things:
After I fixed the sizes the app compiled without errors but I think the most important thing is the aspect ratio.
Upvotes: 2
Reputation: 950
The same error has been resolved by adding the exact sizes of launch images for different iOS devices.
Upvotes: 7
Reputation: 209
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.
Upvotes: 20
Reputation: 5659
I tried everything here, deleted the .app and rebuilt each time, and nothing worked. I finally got fed up and switched back to the old style of launcher image specification (Project Settings Window -> General -> Launch Images -> Source -> Don't use asset catalogs.) That worked!
Upvotes: 2
Reputation: 2547
Search for LaunchImage keyword in your .plist file and delete it. Then, try assigning the image again by dragging as you already did before...
Upvotes: 23