I get an error "None of the input catalogs contained a matching launch image" in xCode5-iOS7

IosXcodeLaunchimage

Ios Problem Overview


I'm trying to define launch images. Probably only one image is missing.

I'm following the instructions from this site Create launch images in different sizes for different devices

So I have 7 images with the required size. But when I drag them to LaonchImages sheet it requires 8 images...the one that is missing is called "iPhone Portrait 2x" and according to the details pane I found its size 640x960 and I added it.

sill I'm getting the error - and the compilation fails...

Ios Solutions


Solution 1 - Ios

Select your project, go to Build Settings, search for AppIcon-2 and change it into AppIcon and you will be fine.

enter image description here

Solution 2 - Ios

Select project file and then select target in question. In General tab there is in app icons and launch images launch image source should be "Use assets category" enter image description here

Solution 3 - Ios

My LaunchImage file had been deleted and I had to add a new one in my xcassets.

Go to your images.xcassets. If there is no LaunchImage listed on the left, click the plus button at the bottom and navigate to new iOS launch image. enter image description here

Solution 4 - Ios

I could solve this by going to Build Settings of my target, searching for word "launch", then removing (using Backspace) "Asset Catalog Launch Image Set Name", that was set to LaunchImage.

Solution 5 - Ios

The Launch Image asset has been deprecated. I deleted the Launch Image asset but then I was getting compilation error.

In order to fix the error, the Launch Image asset catalog name has to be removed from Build Settings.enter image description here

Solution 6 - Ios

In my case the problem was solved by removing the reference to Images.xcassets and then add it to the project again.

I'm not sure what caused the problem, but it may have something to do with the fact that I moved the assets "file" from one Xcode group to another, which would be weird as the file's path remained the same, but that was also the only thing I did with the file...

Solution 7 - Ios

We had our Asset Catalog Launch Image Set Name set in our project target. After removing this from the target and instead setting it in our project it compiled fine.

Solution 8 - Ios

For me the problem occurred when i have added a new watch target. Even though i had AppIcon set i was getting the error, i fixed it by removing the reference of asset catalog and added it back, you can do it by deleting the reference and add it back.

Solution 9 - Ios

This generally happens when you have accidentally deleted Assets.xcassets. You need to follow the below steps.

  1. Right click on Assets.xcassets and select Show File Inspector.
  2. Check if the desired target has been checked under Target Membership.
  3. If its unchecked, Please select the target for which you need the Assets to be used.
  4. Clean and Build the App.

Solution 10 - Ios

With xcode 11.3.1 you have to select the project file and after that, select the target in question, and in the General tab under "App Icons and Launch Images" select as shown bellow. enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAmit.TSView Question on Stackoverflow
Solution 1 - IosDesmondView Answer on Stackoverflow
Solution 2 - Iosuser3540599View Answer on Stackoverflow
Solution 3 - IosgalactikuhView Answer on Stackoverflow
Solution 4 - IosBorzhView Answer on Stackoverflow
Solution 5 - IosAbdullah UmerView Answer on Stackoverflow
Solution 6 - IosLukas KalinskiView Answer on Stackoverflow
Solution 7 - IosRem-DView Answer on Stackoverflow
Solution 8 - IositsViksInView Answer on Stackoverflow
Solution 9 - IosPradeep Reddy KypaView Answer on Stackoverflow
Solution 10 - IosAlexandruView Answer on Stackoverflow