Asset Catalog Compiler Error

后端 未结 13 812
慢半拍i
慢半拍i 2020-12-30 23:55

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 build

相关标签:
13条回答
  • 2020-12-31 00:31

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

    0 讨论(0)
  • 2020-12-31 00:32

    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.

    0 讨论(0)
  • 2020-12-31 00:37

    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:

    0 讨论(0)
  • 2020-12-31 00:37

    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

    0 讨论(0)
  • 2020-12-31 00:38

    I also have the same issue, in my experience it caused by :

    1. wrongly formatted file -> for example you have jpeg file and you want to convert it to png by renaming its name. You should converted or exported it properly by using image editing software, for example photoshop.
    2. Wrong size -> in my case i created an icon 72 px X 72 px but when i imported it became 73 px X 73 px, it caused by adobe illustrator clipping system. You should set it's size to fit the app icon requirement correctly.

    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.

    0 讨论(0)
  • 2020-12-31 00:40

    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.

    0 讨论(0)
提交回复
热议问题