Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
219 views
in Technique[技术] by (71.8m points)

cocoa - Xcode 4.4 removed Icon Composer in Developer Tools

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.

question from:https://stackoverflow.com/questions/11660736/xcode-4-4-removed-icon-composer-in-developer-tools

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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, use iconutil in Terminal. Terminal is located in /Applications/Utilities/Terminal. Enter the command iconutil -c icns <iconset filename>, where <iconset filename> is the path to the .iconset folder. You must use iconutil, 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...