Asset Catalog Compiler Error - none of the input catalogs contained a matching app icon set named "AppIcon"
问题:
回答1:
Please verify your settings is correct.
回答2:
I had a similar problem and I think it was because I accidentally deleted the AppIcon
in Images.xcassets
. So I will explain what I did.
- Open the
Images.xcassets
in the current project. - Resize the window and move the window(Xcode) to the right.
- Start a new project in Xcode(a temporary one). Name it something like "temporaryApp".
- Open the
Images.xcassets
in the temporaryApp. Here, you can seeAppIcon
. - Click and drag this to
Images.xcassets
of our previous app, that is placed at the right-hand side of the screen.
And voila, Build Succeeded.
Hope this works for you
回答3:
This once happened to me, and I solve it correctly with an easy way :->
choose the file "Images.xcassets", if your project does not have such a resource file, create it.
click your mouse's right key in the blanket, and choose "New App Icon"
build your project again, everything works fine now. IF NOT, check the project's "Build Settings", and find property "Asset Catalog App Icon Set Name" to see if it was "AppIcon".
回答4:
I had a same issue and I solved this way. For me, I added Apple Watch extension within this project and deleting them got me into this trouble.
In the Images.xcassets, I do have "icon" and "info", but the error message was exactly same as yours but for "icon" set.
So I searched within xCode project which contains "icon". and found xcodeproj file > build settings > Asset Catalog Compiler - Options with app icon set name as "icon".
So I deleted icon leave it blank and build again, IT WORKS.
回答5:
This problem might be solved by removing the reference of .xcassets
file and adding it back if the AppIcon and info is already setup. It worked for me when i removed the reference to Images.xcassets
and then added it to project again from Xcode.
回答6:
You have probably deleted the Appicon
in a Assets.xcassets
, you can fix it by going to Assets.xcassets
-> hitting the + -> App Icons & Launch Image -> New iOS App Icon.