问题
I have XCode 4.2 and need to submit a Mac app to App Store. I've tried all kinds of suggested methods to get the multi-resolution icons in there, so you don't need to inform me on that.
The remaining method is to use iconutil
. I've searched in Spotlight, searched my Mac's harddisk in Finder, two later XCode .dmg
images, sudo find
in Terminal, and looked for paths on the web. The XCode 4.4.1 .dmg
had Iconutil.strings
and Iconutil.xcspecs
, but that's as far as I've come.
Is there a package I can download to get this command or tool, so I can convert the .iconset
? If there is a setting I can change in XCode to make it allow the old .icns
files (before 1024x1024
and 512x512@2x
), that would be a solution that I could accept temporarily. I have OS 10.6.8.
EDIT
I would accept an answer that confirms whether the command is there in 10.6.8 and where it is. I would accept an answer that links to a valid .icns
file with 512x512
and 512x512@2x
(preferably uncompressed .png
inside) that has been approved by App Store validation recently.
回答1:
I have both Xcode 4.2 and Xcode 3.2.5 installed on Snow Leopard and iconutil is not in the system.
回答2:
I have Xcode 4.5. There you must install the command-line tools separately. Check Xcode Preferences --> Downloads --> Components. There you should find "Command Line Tools" and a download button where you can install these tools.
Then you can proceed as shown in the OS X documentation: Optimizing for High Resolution, Provide High-Resolution Versions of All App Graphics Resources.
I hope this will help you.
回答3:
You first need to ensure you have xcode-select
(manpage) set-up correctly; this will show you the current setting:
$ xcode-select -print-path
This needs to point to the /.../Xcode.app/Contents/Developer
folder, so if you had Xcode.app
installed in /Applications
you can change that using:
$ xcode-select -switch /Applications/Xcode.app/Contents/Developer
Now if iconutil
is packaged with Xcode (I cannot check at the moment), you should be able to run it with xcrun
(manpage):
$ xcrun iconutil ...whatever...
来源:https://stackoverflow.com/questions/12281309/where-is-the-iconset-command-line-tool-iconutil-located