iconset for El Capitan

I'm getting a compile error using XCode 7.1.1 relating to iconUtil. The error only occurs on a El Capitan machine. I don't get the error on 10.10.5 Mac also with XCode 7.1.1 using the same exact project.


The error is:

Iconutil Error

Variant named 'icon' contains no image resources.

Failed to generate ICNS


The contents of my icons.iconset folder are as follows:


-rw-r--r-- 1 username staff 9311 Sep 4 2013 icon_128x128.png

-rw-r--r-- 1 username staff 17852 Sep 4 2013 icon_128x128@2x.png

-rw-r--r-- 1 username staff 3432 Sep 4 2013 icon_16x16.png

-rw-r--r-- 1 username staff 4242 Sep 4 2013 icon_16x16@2x.png

-rw-r--r-- 1 username staff 17852 Sep 4 2013 icon_256x256.png

-rw-r--r-- 1 username staff 37176 Sep 4 2013 icon_256x256@2x.png

-rw-r--r-- 1 username staff 4242 Sep 4 2013 icon_32x32.png

-rw-r--r-- 1 username staff 5780 Sep 4 2013 icon_32x32@2x.png

-rw-r--r-- 1 username staff 37176 Sep 4 2013 icon_512x512.png

-rw-r--r-- 1 username staff 72764 Sep 4 2013 icon_512x512@2x.png


I get the same error when running iconUtil from the command line.

Is there any update to this? Did you fix it?

I also encounter the same error when compile.


<path>/icon.iconset: Variant named 'icon' contains no image resources.

<path>/icon.iconset: Failed to generate ICNS.

To any people who stumble upon this frustrated that there are no answers, I'm here to save you:


In Apple's infinite wisdom, they appeared to have changed the way iconutil works in 10.11. You now HAVE to have a folder with images strictly named "icon_XxY.png". If you read some stuff on stack overflow, it either appears you used to be able to name these things whatever you wanted as long as the postfix was correct or the people posting gloss over the part about the strict naming. So, for, example, I named a folder "icon_mac.iconset" and within this folder I have:


icon_1024x1024.png

icon_1024x1024@2x.png

icon_128x128.png

icon_128x128@2x.png

icon_16x16.png

icon_16x16@2x.png

icon_256x256.png

icon_256x256@2x.png

icon_32x32.png

icon_32x32@2x.png

icon_512x512.png

icon_512x512@2x.png


The images MUST be named as above, or the tool will give you an error when trying to create the icon set.

iconset for El Capitan
 
 
Q