iOS Xcode 6 LaunchImage The launch image set named "LaunchImage" did not have any applicable content

noobsmcgoobs picture noobsmcgoobs · Dec 9, 2014 · Viewed 27.6k times · Source

I deleted my original launchImage image set.

Then went to "App Icons and Launch Images" in the project section of Xcode.

I de-selected "Launch Image Source" and then reselected it. I get the "Migrate launch images to an asset catalog". I choose an asset catalog and "Migrate" and then a launchImage image set opens up.

I add my files, but then I get a red compile warning.

I checked the Plist - no launchimage in there at all.

Previously, I got yellow warnings about Ambiguous content and the files being the wrong sizes - I check and rechecked - they were the right sizes!

How do I fix?

EDIT: I found this in my files. Do I just trash the selected folder?

ios file folder with 2nd images folder

Answer

Michael Olenick picture Michael Olenick · Dec 10, 2014

Go to the project explorer and select the project. Click "Build Phases". At the bottom there's a section called "Copy Bundle Resources." I suspect you'll find two images.xcassets files there and, if so, remove one by highlighting and clicking the minus icon (there are legitimate reasons to have two, or more, but you'd have purposefully done that so it's outside the scope of this answer). On the remaining one add your images to the LaunchImage.

Your reason for adding two isn't clear so I'll add that if you are using multiple targets you can have different images.xcassets files for each target (xcode adds multiples by default). However, if most assets are the same and you don't want to manage multiples, you can use the same in all targets and write add a script to build phases to copy the different assets, like the launch image, over at compile time. This is also done in build phases: add a phase that runs a script then a copy (cp) line to copy images. Needless to say you should do this with very few assets: I use it for launch images and app icons.

Edited to add: there's a new scheme where launch images are in storyboards and/or xib's. I'm assuming that you're not using it because you said you were using the older launch images but, if you are, then just put your launch image in the storyboard/xib launch image file.