Xcode 4.4在开发工具中删除了Icon Composer [英] Xcode 4.4 removed Icon Composer in Developer Tools
问题描述
所以我只是升级到最新和最伟大的Xcode 4.4,但找不到Icon Composer。它在Xcode 4.3中的Open Developer Tool菜单项中,但现在我在任何地方找不到它。
苹果是否忘记包含它?如何创建没有它的图标?
我也试过在Terminal中使用iconutil,但我得到一个错误,1024x1024不被支持。我正在运行OSX 10.7.4。
我的猜测是,苹果不想让你使用它。 >
EDIT:更好的方法是将 .iconset
文件夹添加到目标在Xcode。向下滚动到Dvorak的答案,这是更好的答案。
官方认可的方式现在是 iconutil
。
从Apple的指南:
创建必要的应用程序图标资源后,将其放置在名为
icon.iconset
的文件夹中。要创建.icns
文件,请在终端中使用iconutil
。终端位于/ Applications / Utilities / Terminal
中。输入命令iconutil -c icns< iconset filename>
,其中< iconset filename>
.iconset
文件夹。您必须使用iconutil
(而不是Icon Composer)来创建高分辨率的.icns
文件。
还有另一个更深入的相关Apple文档:高解析资源。
作为参考,完整的图标集:
icon_16x16.png
icon_16x16 @ 2x。 png
icon_32x32.png
icon_32x32@2x.png
icon_128x128.png
icon_128x128@2x.png
icon_256x256.png
icon_256x256@2x.png
icon_512x512.png
icon_512x512@2x.png
请注意,最后一个是相当于1024x1024,虽然似乎iconutil想要它命名为512x512 @ 2x,至少在狮子。确保 - 这是关键 - 你有这个确切的文件集,否则你会遇到错误。注意缺少 icon_64x64.png
,例如。
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
icon_16x16@2x.png
icon_32x32.png
icon_32x32@2x.png
icon_128x128.png
icon_128x128@2x.png
icon_256x256.png
icon_256x256@2x.png
icon_512x512.png
icon_512x512@2x.png
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.
这篇关于Xcode 4.4在开发工具中删除了Icon Composer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!