Creating an app icon

Creating an app icon that can be use for macOS apps It also supports retina screens.

.png 👉 .icns

  1. Download 👈 (It’s just an .applescript won’t bite)
  2. Drag and drop your .png onto the and your done 👍


here is an app icon I created in Illustrator:



Now you have the .icns file that can be added to your xcode project.

Build your self:

This applescripts can convert a .png to an .icns file in 4 simple steps:

  1. Open the AppleScript app
  2. Copy and paste the code into AppleScript from JoeFrizzell in the link bellow.
  3. Save as:
  4. Drag and drop your .png onto the you just created.

Credits to JoeFrizzell via:

Running the app requires:

MacOS Sierra has stricter security than before. To bring back running apps from unidentified developers simply write sudo spctl --master-disable in terminal and hit enter, as per: (You can always enable it after) Or you can build from source your self and GateKeeper won’t complain.

High Sierra update:

Since macOS high sierra, you need to be strict about size. Make sure the png size is exactly 1024x1024px. Or else it won’t work. Basically the iconutil that IconMaker utilises has been upgraded in High Sierra. I tested a 1000x1000px file in Sierra and it worked. But not in High Sierra. So make sure your source png is the correct size. 💪

Doing all of this with just terminal:

  1. Create a png file that is exactly 1024x1024px

  2. Make sure all your icons are named exactly like the bellow: (it can be the same 1024x1024px png, but they must be named correct)
  3. Put the png’s in a folder named: someIcon.iconset and put the folder on your desktop

  4. Open Terminal and paste this line: iconutil --convert icns ~/Desktop/someIcon.iconset

  5. You should now have someIcon.icns on your Desktop ready to be used in your macOS app projectgit

Bonus points:

sips -Z 512 ~/Desktop/someIcon.png You could add shell commands that resizes the images for you, in the applescript to actually resize each image. But I didn’t have time for this step this time around. Maybe next time I revisit this app ill implement it. You can also probably make a photoshop script that does all the resizing and renaming for you. let me know if you make any of this ideas and ill be sure to share it with the world. Thanks for reading ✌️


For ios11 icons you can use this online converter: