Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the icon for my application's Mac OS X app bundle?

Tags:

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.

like image 254
Walt D Avatar asked Mar 14 '09 20:03

Walt D


People also ask

Where are app icons OSX?

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.

How do I change the preview icon on my Mac?

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).


1 Answers

in your info.plist add

<key>CFBundleIconFile</key> <string>iconfile</string> 

with icon file iconfile.icns in your Resources directory

like image 116
cobbal Avatar answered Oct 29 '22 00:10

cobbal