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

断了今生、忘了曾经 提交于 2019-11-29 22:46:54
Desmond

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

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"

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.

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...

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!