How to make built app with icon? - objective-c

I'm writing an OSX App and added an icon for it.
After building in Xcode, I can see the app with icon under Products folder, but when I RightClick->'Show in Finder', the built file is shown without icon. I want the built file to have an icon.

For Mac OS applications, you need to create an .icns file and include it in your Info.plist just like any other project.

Just change icon.png to icon.icns

When I submit an icon image for my app, I never add the .icns extension. It is automatically assumed by the compiler. So for the icon file "icon.icns", simply enter "icon".

Related

Application icon in Notification Center is the default Mac icon

I use another image.icns as my applications icon file.
I've deleted ~/Library/Application Support/NotificationCenter/*.db and restarted my computer but the notification icon is still the default Mac icon for my application.
Stop your application from running in Xcode. Force quit the Notification Center process via Activity Monitor. Relaunch Notification Center and then launch your application. Your notifications should now display your application's icon you've provided in your AppIcon.appiconset.
Turns out you should probably keep your icons in an ".iconset". And have all the recommended sizes available for the notification center to pick up (e.g. might be 32 x 32, might be 16 x 16).
And to create this, you can use the "Icon Composer" app to convert your .icns file into a full blown icon set. The .icns file does end up in your built app package / bundle in the end, though.
Details can be found in Apple's "High Resolution Guidelines for OSX" document, under the "Create a set of icons that include high-resolution versions" section.
Archive your app, export it to your applications folder. When there is a copy of your app in Applications folder, notification icon is somehow visible. This worked in my case...

App icon is not displayed on the simulator screen

I draged all kinds of icons. After that I can see them in small windows in "General - App Icons" but when I run a simulator and go to Home Screen, my app icon is not displayed. What is wrong?
Click "Clean" in Xcode. Then remove app from simulator. Then run app.
restart your simulator. Make sure you have proper icon for device type / resolution you are trying to simulate.
For XCode 8 I had this same problem. I had created multiple targets and in doing so had unknowingly removed all targets from membership of Assets.xcassets.
To fix it for me, I selected Assets.xcassets in the project view and then reselected all the targets that I wanted to apply my icon sets to.

How to set an installer icon for Adobe AIR applications?

I'm trying to set the installer icon of an Adobe AIR application, like in the screenshot below:
but I cannot figure out how to do it. I've specified the icons in the app.xml but nothing is showing up. Any idea how to do this?
You have to include the icon images in the AIR packagee as well as reference them in the app.xml file. (Flash and Flash Builder should do this for you, but if you are packaging from the command line, it is easy to forget.) Make sure that they end up in the correct path within the package relative to the main app SWF or HTML file. I/e/ if you reference your icon as "foo/icon.png", it has to be in the "foo" subdirectory within the package.

Set logo for Mac application

I am an iOS developer and did my first Cocoa Mac application using Xcode 4.2, I set the Logo image in the xcode itself and property list, but the application logo still has its default logo (the white sheet with two pens), how can I set Logo for my application?
Design your 512x512 icon and save it as png file. Open Icon Composer (installed with Xcode in /Developer/Applications/Utilities folder) and drag your png file to it and save your icon as icns.
Now in Xcode open your project and select the target. Drag your icns file to the "App Icon" box. That´s it! Build and run again...
You should place icon (icns format file) Your project target -> summary -> drag n drop in App icon box.
you need a .icns file rather than a straight png to get the file icon. This is essentially a collection of images at different sizes that mac os can use for different jobs.
as of mountain lion, the Icon Composer isn't available. You can build your icns file on the command line from a bunch of scaled and named bitmaps, or you can use the simple utility I built to do the job!
http://hobbyistsoftware.com/icnsBuilder

Where is the .app program? (Mac OS X and iOS)

I'm trying to find the .app file in my project folders but I can't find it. As I remember it was just to go into the build folder in the project folder and the .app file should be there but now I don't have a build folder in those app.
Thank you in advance!
In Xcode: expand Products then, right click on your app and from the menu click on Show on Finder or Reveal on Finder.
In Xcode 4, build products are stored by default in:
~/Library/Developer/Xcode/DerivedData/AppName-lotsofrandomchars/Build/Products/
If you've upgraded to Xcode 4, things have changed. Click Product/Archive to build a release version of your app, then Window/Organizer, and select the Archives pane. Select the archive you just built, then click the "share" button towards the top right.