4/16/2023 0 Comments Add new appicon xcode![]() ![]() ![]() icns with nothing but the 512x512 image in the iconset. Scale the 512x512 (1024x1024 pixel if supporting hi res) image to all of the other sizes, using your favorite tool.As long as you don't want to get into the App Store, you can get away with cheating, in two ways: Now, I know you don't want to draw the same picture in 10 different variations, you just want something simple. Build the project, and then look at MyApp.app, and it will have your icon in the Finder, on the Dock, etc. Hopefully Apple will fix that some day.īut for now, it doesn't matter. ![]() If you follow the out-of-date recommendations from the HIG two versions ago, Xcode always shows the icon, but if you follow the current HIG, it doesn't. In other words, you may still see the "?" icon. This may not have any visible effect in the GUI, except to add MyApp.icns to the Project Navigator. In Xcode, select your project in the Project Navigator, select your app target in the project sidebar, select the Summary tab, and drag MyApp.icns from Finder to the App Icon box. Now you can do the steps suggested by Douglas, and it will actually work. But, if you insist, you can get away with just putting icon-512x512.png in the folder, and follow the rest of the steps, and it will work.įrom the Terminal, cd into the parent directory, and type iconutil -c icns MyApp.iconset. Also, if you want to get into the App Store, Apple will reject you if you don't have them. And on a Retina Mac, when your icon gets scaled up to double resolution, instead of getting sharper it'll just get jagged. Your 512x512 icon will look horrible when scaled down to 32x32. "But wait! I just want an icon, I don't want all those sizes!" Well, you really do want all those sizes. Put them all in a directory together named, e.g., MyApp.iconset. They should be named either icon_512x512.png, etc., or MyApp_512x512.png, etc. All of them should have the sRGB color profile embedded in them. See Provide the Correct Resources and Let OS X Do the Work if that link lasts longer than the current list otherwise, search for it at yourself. The exact list of what you need changes over time. If you need to do it manually, here's what you do:įirst, create a set of PNG files at different sizes. But make sure, if you use such a thing, it's up to date, because Apple changes the rules all the time. There are third-party tools that can do this, as well as plugins for Photoshop, GIMP, Illustrator, etc., that can output a correct. The right way to create this is described in the Human Interface Guidelines, and the details are covered in various user's guides and reference guides in Apple's maze of twisty little documentation, but I'll summarize it here. The key here is that you need an ICNS (icon set) file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |