So I just upgraded to the latest and greatest Xcode 4.4 but can't find Icon Composer. It was in the Open Developer Tool menu item in Xcode 4.3 but now I can't find it anywhere.
Did Apple forget to include it? How do I create icons without it?
I also tried using iconutil in Terminal but I'm getting an error that 1024x1024 is not supported. I am running OSX 10.7.4.
My guess is that Apple doesn't want you using it anymore.
EDIT: The better way to do it is to add the .iconset
folder to the target in Xcode. Scroll down to Dvorak's answer, which is admittedly the better one.
The officially sanctioned way is now the iconutil
command instead.
From Apple's guidelines:
After you’ve created the necessary app icon assets, place them in folder a named
icon.iconset
. To create an.icns
file, useiconutil
in Terminal. Terminal is located in/Applications/Utilities/Terminal
. Enter the commandiconutil -c icns <iconset filename>
, where<iconset filename>
is the path to the.iconset
folder. You must useiconutil
, not Icon Composer, to create high-resolution.icns
files.
There's another relevant Apple doc that goes more in depth: High Resolution Resources.
For reference, the complete set of icons:
icon_16x16.png
[email protected]
icon_32x32.png
[email protected]
icon_128x128.png
[email protected]
icon_256x256.png
[email protected]
icon_512x512.png
[email protected]
Note the last one is the equivalent of 1024x1024, though it seems like iconutil wants it named 512x512@2x, at least in Lion. Make sure - this is key - that you have this exact set of files, or you will encounter errors. Notice the lack of an icon_64x64.png
, for instance.
Ideally, you would supply a complete set of icons. However, it is not a requirement to have a complete set; the system will choose the best representation for sizes and resolutions that you don’t supply. Each icon in the set is a hint to the system as to the best representation to use.
*
The set needs to be put into a folder with the .iconset extension. It might seem a little unusual for a folder to have an extension, but this extension is a signal to the system that the folder contains a set of icons.
*
Xcode automatically validates and converts an iconset folder to an icns file. All you need to do is add the iconset folder to your project and build the project. The generated icns file is added automatically to the built product.
*
Note: Don’t use Icon Composer—it can’t create high-resolution icns files.
Provide High-Resolution Versions of All App Graphics Resources
About High Resolution for OS X
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With