Reputation: 393
I'm not sure what I did to get this error in Xcode 5:
"None of the input catalogs contained a matching app icon set named "AppIcon"".
My app was building fine - then my machine locked up tighter than the arctic - don't know why - and now I get this error.
(There was an existing answer to this same question - but I couldn't quite understand it. Sorry)
Thanks for any help.
Upvotes: 22
Views: 43177
Reputation: 40503
I had imported all the images from a folder into images.xcassets at once then started getting build failed.I tried deleting one image set at a time and build (⌘b) until I get the project build properly and understood one image set causing issue. Then continued deleting one image from that image set and build (⌘b) until I get build succeeded and found the culprit!. Because a different format file had been renamed to PNG.
Upvotes: 0
Reputation: 3394
There is one mole in your images. Find him and remove it. Try removing all images then add few images and try compile again. Do this until you find out the bad image.
Upvotes: 0
Reputation: 421
for my case i faced same problem ,when I updated Xcode to 9.2 from 8.3 ,
i just upgrade the Deployment target in both TARGETS and PROJECT section to minimum iOS 11.0
from Xcode side panel , and solved
Upvotes: 0
Reputation: 1384
I also have the same issue, in my experience it caused by :
note : for wrong size you need to place your art board in a clear coordinate, for example 1000 px, 200 px, i get it right by using top left anchor.
Upvotes: 0
Reputation: 6737
Simple Solution:
I was stuck in this issue and after reading "@Michael Enriquez" post, I realized that this problem occurred due to wrong formatted image resource, I was worried how to check which file I saved incorrectly if I have so many image resources. So I just used a software named ImageOptim from AppStore which I normally use for reducing image sizes, so I dragged all the images to ImageOptim and I realized the wrong file, ImageOptim showed a cross sign on the wrong formatted image, then I changed that specific image to png and my problem is solved. I hope this solution will help you. Have a look at the snapshot below:
Upvotes: 3
Reputation: 1
For me the quickest fix was to (first copy and make sure you have a backup of images) delete all files within Images.xcassets. Then go to "Editor" on top menu and click "New Image Set" all the way to "New OS X Icon" below that just to be safe. After this copy n paste back the images with the empty "New etc." still in the folder.
Upvotes: 0
Reputation: 420
I had this error when I added multiple time AppIcon set in Images.xcassets. I found that selected AppIcon set in Target/General/App Icons and Launch Images/AppIcon is different than the Target/Build Setting/Asset Catalog Compiler-Option/Asset Catalog App Icon Set Name. So that make sure AppIcon/LaunchImage set name must be same.
Upvotes: 0
Reputation: 628
I just had this amoying error and besides deleting a wrongly included .psd file I´ve also RMC over the .xcodeproject/Show Package Contents and deleted the .xcworkspace file.
Hope this help others too.
Upvotes: 0
Reputation: 914
I had this problem and I had accidentally deleted the asset catalog for my app icons. Fortunately, I had a backup version. To fix it, I went to the Images.xcassets folder within my project folder and copied the AppIcon.appiconset folder from my backup project - worked fine.
Upvotes: 3
Reputation: 61
If you changed the deployment target to some other version. The dependencies will be changed. In my case i changed from iOS 6 to 7 by mistake. changing back made it error free.
Upvotes: 6
Reputation: 2782
Had the same problem and tried several solutions but in the end it was a bad image file as well. I finally identified the troublemaker by deleting all the images and then re-adding them one by one until it wouldn't compile anymore. When I tried to open that file in Photoshop it gave me the following error message:
"Could not complete your request because the file-format module cannot parse the file."
Upvotes: 2
Reputation: 2520
I had this problem when I accidentally saved a .psd as a .png. Converting the image to an actual png instead of a Photoshop file fixed it for me.
Upvotes: 72
Reputation: 393
Ok, so I haven;t had an answer overnight yet - so I prodded around myself - went into the general tab - App Icons section - and clicked 'Use AppIcon' button instead of 'Don't use asset calalogues'.
That fixed it - compiler error disappeared.
Not exactly sure what it all means frankly. More docs to plod through, I suppose.
Anyway hopefully this may help someone else.
Thanks.
Upvotes: 6