Since Xcode 4.4 Icon Composer is no longer the recommended way to create icons and is no longer part of the standard Xcode installation. Thanks to the introduction of a Mac with a retina display, it is now recommended to provide high-resolution versions for all graphic objects, including application icons.
To provide your application with an icon under Xcode> 4.4, follow these steps:
Create the [IconName] .iconset folder in Finder
In this folder, place your icon as png files. You will need a 16px, 32px, 64px icon (retina only), 128px, 256px, 512px and 1024px (retina only)
These icons should be named with the template icon_16x16.png, icon_32x32.png, icon_128x128.png, etc.
To support retina displays, you must also add dual-resolution icon files, such as: icon_16x16@2x.png (with size 32x32), icon_32x32@2x.png (size 64x64), etc. Up to the version: icon_512x512@2x.png (size 1024x1024).
drag this [IconName] .iconset folder to Xcode (copy if necessary)
in the info.plist file, set the value "CFBundleIconFile" (file icon as a key) to [IconName], but without the extension .iconset
Annotations:
- (currently) no @ 2x icons required
- it (usually) also works if you do not provide each icon file
- The iconset folder should not contain the icon_64x64.png file. 64px icon is for retina version only icon_32x32
Update. At the end, your .iconset folder contains the following 10 items:
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
Official Guide:
https://developer.apple.com/library/content/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html
Additional Information:
To convert the iconset folder to icns file, run the following command on the terminal:
iconutil -c icns [IconName].iconset
where [IconName] should be replaced with the prefix of the iconset folder. You now have a file named [IconName] .icns. In Xcode 4.4, in the Goal Summary, right-click the question mark for the icon, then select the icns file. Then you should see that the question mark is replaced by the icon.
codingFriend1 Aug 28 2018-12-12T00: 00Z
source share