I have an application that I've bundled into a Mac OS X app bundle. Everything is working fine, but I want to change its icon from the default. How do I set its icon? Thanks.
Control-click on the program in question, select Show Package Contents from the pop-up menu, then navigate into Contents -> Resources. Inside that folder, somewhere, you should find a file whose name ends in . icns. Open that in Preview, and there are the icons.
On your Mac, select the file or folder. Choose File > Get Info in the menu bar. At the top of the Info window, select the small custom icon. Make sure you click the small icon at the top of the Info window (not the large icon under Preview).
in your info.plist
add
<key>CFBundleIconFile</key> <string>iconfile</string>
with icon file iconfile.icns
in your Resources directory
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