

Uses the same images and sizes as the Spotlight Icon.iOS 7 & 8 use the same image sizes as iOS 5 & 6.Setting a 1x image for iOS 7 is not supported when using Asset Catalogs.
#Adding appicon xcode for mac#

Settings Icon - If the user enters the Settings app on their iOS device, this icon will be displayed at the end of the Settings list for the app. Spotlight Icon - Whenever the user enters the name of an app in a Spotlight Search, this icon is displayed. Additionally, this icon is used by Game Center, if applicable. This is the icon that the user will tap from the iOS home screen to launch the app. The following screenshots from an iPad illustrates the three uses of icons in iOS:Īpplication Icon - Every iOS app must define an application icon. In the same way that a Xamarin.iOS app can use image assets for UI controls and as document icons, image assets can be used to provide Application Icons. iTunes Artwork - Supplying the required iTunes Artwork for the Ad-Hoc method of delivering your application.Īpplication, Spotlight, and Settings Icons.Managing Icons with Asset Catalogs - Managing application icons using Asset Catalogs.Application, Spotlight and Settings Icons - The different types of icons required for an iOS app.I can't help with the friction of manually sizing art assets, but I highly recommend the Icon Slayer website to automate that (of which I have no affiliation).The following topics will be covered in detail: Hopefully this bug workaround helps someone avoid the frustration I went through. It took me 3 hours of research to solve something that should have "just worked" and the entire process of having to manually create individually sized art assets has been so tedious over the years that it has personally cost me countless hours of busywork.

You must remove your assets file and create a fresh one, then drag images to wells by hand again. So the problem appears to be with how Xcode stores Images.xcassets inside the project, and not with target membership, derived data, or anything in Images.xcassets itself.
#Adding appicon xcode simulator#
Then I was able to create new AppIcons and LaunchImages, drag images to the wells, build and launch the app in iOS Simulator and finally see icons appear properly. I had to select it in order to bring back the "Use Asset Catalog" button. Then when I went to click the App Icons Source popup menu, it only showed "Don't use asset catalogs". I tried dragging the images from the left sidebar Navigator into the AppIcon image wells, hoping that they were just not being copied in a build phase for some reason (failed).įinally in exasperation at the thought of having to create a new project just to fix the icons, I tried deleting Images.xcassets in the left sidebar Navigator and choosing "Move to Trash", then quitting Xcode and relaunching in case it cached anything. I tried comparing the new project's Contents.json with mine in Images.xcassets (failed). I tried creating a new project from the single view template and compared all of the ist settings (failed). this is what cost me at least 2 more hours, because this should have worked and the fact that it didn't revealed the bug in Xcode but I just couldn't see it. I tried choosing "Don't use asset catalogs" in Target Settings and creating a new AppIcon-2 and LaunchImage-2 (failed). I tried archiving the project, hoping that it was just an issue with the iOS Simulator, but the icon in the Organizer-Archives window was still shown as the default white square with lines, confirming that the icon would also not show on a device (a helpful trick to have when no device is handy). I tried "Reset Contents and Settings." in iOS Simulator and even deleting ~/Library/Developer/Xcode/DerivedData//Build/Products/Debug-iphoneos and relaunching the app (failed). I tried Xcode->Product->Clean, Xcode->Window->Organizer->Projects->Derived Data->Delete., relaunching Xcode and the iOS Simulator, then rebuilding and relaunching the app (failed). I had upgraded to Xcode 6 and opened a project created by an earlier version (4 or 5, not sure) and no matter what I did, AppIcons and LaunchImages absolutely would show up when I ran the app in either iOS Simulator or the device. Expanding on adp's answer, if anyone has switched to asset catalogs but they stopped working, and still can't find a solution for Asset Catalog, Images.xcassets, AppIcon or LaunchImage not working, here is a reproduction of the same problem I encountered, and the solution:
