How AppIcon.appiconset and Contents.json Work in Xcode

By the JrodCode team · 12 min read · Updated

Xcode does not store your app icon as a loose PNG in the project root. It stores a small folder named AppIcon.appiconset inside Assets.xcassets, plus a JSON manifest named Contents.json that tells the asset compiler which file fills which slot. Once you understand that pair of files, the “missing icon” warnings, the Single Size vs All Sizes switch, and most App Store Connect icon failures become straightforward to fix.

The App Icon set on disk

In a typical iOS project the catalog looks like this:

YourApp/
  Assets.xcassets/
    Contents.json
    AppIcon.appiconset/
      Contents.json
      Icon-1024.png
      Icon-60@2x.png
      Icon-60@3x.png
      …

The outer Assets.xcassets/Contents.json only describes the catalog itself (author and version). The important file is AppIcon.appiconset/Contents.json. Every PNG you see in the App Icon wells is a sibling of that file. The folder name before .appiconset is the icon set’s name — AppIcon by default — and that name is what CFBundleIconName and the ASSETCATALOG_COMPILER_APPICON_NAME build setting must match.

If the set is missing, open the catalog, click the plus button at the bottom of the outline, and choose iOS App Icon (or macOS App Icon, watchOS App Icon, and so on). One asset catalog can hold several sets — for example a primary icon and an alternate icon — but each set is its own .appiconset folder with its own Contents.json.

Single Size vs All Sizes

Select the App Icon set and open the Attributes inspector. The iOS (or iPad, macOS, watchOS) section has a size mode:

  • Single Size is the default for new projects since Xcode 14. You provide one 1024 × 1024 image, or a layered .icon file from Icon Composer, and the asset compiler produces every smaller glyph at build time. This is what most apps should use in 2026.
  • All Sizes shows a well for each point size and scale: 20, 29, 40 and 60 pt on iPhone at 2x and 3x, the iPad 76 pt and 83.5 pt wells, plus the 1024 pt marketing icon. Use this when you maintain an older project, ship a custom 16 px or 29 px treatment that should not be a mechanical shrink of the 1024, or work with a tool that still emits every filename.

macOS is the important exception. A macOS App Icon set still expects the full 16, 32, 128, 256 and 512 pt images at 1x and 2x (ten files, up to 1024 × 1024 pixels). You can also attach a layered .icon file that covers iOS, iPadOS and macOS together. See the macOS icon size guide for the filenames iconutil expects.

Switching from All Sizes back to Single Size does not always delete the extra PNGs on disk. If Xcode then reports an “unassigned child,” the leftover files are still in the folder but no longer listed in Contents.json. Remove the unused PNGs or add them back to the JSON, as described below.

A real Contents.json

A modern Single Size iOS set is short. The platform and size keys are enough; there is no scale and the idiom is universal:

{
  "images" : [
    {
      "filename" : "Icon-1024.png",
      "idiom" : "universal",
      "platform" : "ios",
      "size" : "1024x1024"
    }
  ],
  "info" : {
    "author" : "xcode",
    "version" : 1
  }
}

An All Sizes set lists each well separately. Notice that the App Store marketing slot uses the ios-marketing idiom and is always 1024 × 1024 at 1x:

{
  "images" : [
    {
      "filename" : "Icon-60@2x.png",
      "idiom" : "iphone",
      "scale" : "2x",
      "size" : "60x60"
    },
    {
      "filename" : "Icon-60@3x.png",
      "idiom" : "iphone",
      "scale" : "3x",
      "size" : "60x60"
    },
    {
      "filename" : "Icon-76@2x.png",
      "idiom" : "ipad",
      "scale" : "2x",
      "size" : "76x76"
    },
    {
      "filename" : "Icon-83.5@2x.png",
      "idiom" : "ipad",
      "scale" : "2x",
      "size" : "83.5x83.5"
    },
    {
      "filename" : "Icon-1024.png",
      "idiom" : "ios-marketing",
      "scale" : "1x",
      "size" : "1024x1024"
    }
  ],
  "info" : {
    "author" : "xcode",
    "version" : 1
  }
}

That excerpt is not a complete All Sizes file — you would also have the 20, 29 and 40 pt iPhone and iPad wells — but the pattern is the same for every row: idiom + size + scale + filename. Dark, Clear and Tinted variants add an appearances array on extra entries. The dark and tinted icon guide shows those keys.

Two rules save a lot of debugging:

  • Every filename must exist next to Contents.json, with exactly that name and spelling. A typo such as Icon-1024.PNG or a file sitting in a subfolder will show up as an empty well.
  • Every PNG in the folder should be listed. A file that is not referenced is the usual cause of “The app icon set ‘AppIcon’ has an unassigned child.”

Dropping generated files into Xcode

Our free generator exports an ios/ folder with Icon-1024.png (flattened, no alpha) plus every legacy size, and a matching ipad/ folder. You do not replace the whole .appiconset with that folder. The set already belongs to the catalog. Instead:

  1. Open Assets.xcassets and select AppIcon.
  2. For a new project, leave Single Size selected and drag ios/Icon-1024.png into the 1024 pt well. That is enough.
  3. If you need All Sizes, switch the inspector, then drag each file into the well whose point size and scale match the filename: Icon-60@3x.png goes in 60 pt / 3x, Icon-83.5@2x.png goes in the iPad Pro 83.5 pt slot, and so on.
  4. Confirm the well preview looks sharp at actual size, not just when the well is enlarged.
  5. Build and check the Home Screen, Spotlight and Settings in the simulator before you archive.

For macOS, drag the ten files from macos/AppIcon.iconset/ into the macOS wells, or keep the .iconset folder and run iconutil -c icns AppIcon.iconset if your tool wants an .icns file instead of a catalog.

Fixing missing icon warnings

These are the messages we see most often, and what actually causes them:

Warning or errorWhat to check
The app icon set “AppIcon” has an unassigned child.A PNG sits in AppIcon.appiconset but is not listed in Contents.json. Delete the leftover file, or add a matching entry if you still need it.
An empty record / unassigned image in the app icon set.A JSON entry has no filename, or the named file is missing. Re-drop the image into the empty well so Xcode rewrites the entry.
Missing Marketing Icon / 1024 × 1024 App Store icon.The ios-marketing (All Sizes) or Single Size 1024 well is empty. Add a flattened PNG. See App Store Connect icon rejections if the file is present but has an alpha channel.
Missing required icon file … 120 × 120 or 152 × 152 (ITMS-90022 / ITMS-90023).Usually an All Sizes set with an empty 60 pt @2x (iPhone) or 76 pt @2x (iPad) well, or a catalog that is not actually being compiled into the target. Confirm the set is selected in the target.
The app icon is the default / placeholder on a device.The target’s App Icons setting does not point at this set, or a Watch / iMessage extension has its own empty catalog.

Xcode also reports problems when a PNG’s pixel dimensions do not match the well — for example a 120 × 120 image in a 180 × 180 (60 pt @3x) slot. The filename is a hint, not a guarantee. Check the file with Preview’s inspector or with sips -g pixelWidth -g pixelHeight Icon-60@3x.png.

CFBundleIconName and build settings

Two places have to agree on the set’s name:

  • In the target editor, open General → App Icons and Launch Screen (the wording varies slightly by Xcode version) and confirm App Icon is set to AppIcon, or whatever you renamed the set to.
  • In Build Settings, search for ASSETCATALOG_COMPILER_APPICON_NAME. It should be the same string, with no .appiconset suffix.

Xcode normally writes CFBundleIconName into the built Info.plist from that setting. If you maintain a custom Info.plist and set the key yourself, it must match exactly, including capitalization. A mismatch is a common source of ITMS-90713 (“Missing Info.plist value for CFBundleIconName”) and of a build that validates locally but shows a generic icon on the device.

Watch apps, iMessage extensions and App Clips each have their own catalog and their own App Icon set. A warning that mentions a different target is not fixed by editing the iOS app’s AppIcon.appiconset.

Verifying the icon in your archive

Do this before you upload, especially after you change size mode, rename a set, or flatten a marketing icon:

  1. Choose a Generic iOS Device or Any iOS Device destination, then Product → Archive.
  2. In the Organizer, select the archive and click Validate App. Icon errors such as a transparent 1024 px image often appear here, before App Store Connect.
  3. To inspect the bundle by hand, reveal the archive in Finder, choose Show Package Contents, and open Products/Applications/YourApp.app. On current iOS the compiled images live in Assets.car, not as loose PNGs.
  4. Dump the catalog with xcrun --sdk iphoneos assetutil --info /path/to/Assets.car and confirm there is a 1024 × 1024 app-icon entry. If you still have questions about alpha, keep the source Icon-1024.png and check it with sips -g hasAlpha as described in the rejection fixes guide.
  5. Install the archive on a device or the simulator and look at the Home Screen, the App Library, Spotlight and Settings. A catalog can compile and still look wrong if the source art is soft, off-center or too close to the corners.

If you are still preparing the master artwork, start with how to prepare a 1024 × 1024 source file. For the pixel sizes of each well, use the iOS app icon size chart.

Frequently asked questions

Do I still need every iPhone and iPad icon size in Xcode?

Usually not. In a current Xcode project the App Icon set defaults to Single Size, which takes one 1024 × 1024 PNG (or a layered .icon file) and derives every Home Screen, Spotlight, Settings and notification size. Switch to All Sizes only for older targets, custom tooling, or when a missing-size warning names a specific slot.

Where does Contents.json live?

Inside the App Icon set folder: Assets.xcassets/AppIcon.appiconset/Contents.json. Xcode rewrites this file when you drop images into the wells or change Single Size, All Sizes, or Appearances in the Attributes inspector. You can also edit it by hand, then let Xcode reload the catalog.

What is CFBundleIconName and why does it matter?

CFBundleIconName in Info.plist must match the name of the App Icon set in your asset catalog, which is AppIcon in a new project. If you rename the set and forget to update the key, or if a build setting points at a different name, App Store Connect can reject the build and the Home Screen may show a default placeholder.

How do I confirm the 1024 px marketing icon is actually in the archive?

After Product → Archive, reveal the archive in Finder, Show Package Contents, and inspect Products/Applications/YourApp.app. You can also run xcrun --sdk iphoneos assetutil --info on the Assets.car inside the bundle and look for a 1024 × 1024 entry with no alpha.

Browse all icon guides