There's no space in Xcode 7.1's app icon asset catalog for the iPad Pro's 167x167 app icon... aren't asset catalogs the current best practice for adding app icons? If not how are we supposed to add it?
I was only seeing iPhone sizes on the AppIcon assets section (XCode 8.1). I think it was because I had originally built the project targeting iPhone and then added Universal support later. To add the empty iPad icon spots:
- In ImageAssets, click on AppIcon to highlight it.
- Open up the right hand utility panel by clicking on the panel icon in the top right corner of xCode.
- Within the utility panel, click the Attributes Inspector (looks like a pencil pointing down through a line).
- Now you should see two dropdowns in the panel that say iPhone and iPad. Select iPad and select "iOS7.0 and Later".
If you're not using asset catalogs, you can add this icon to your project by:
- Create a 167x167 icon file. The guidelines on icons state clearly that file names for icons are not relevant, so I named it "[email protected]".
- Add the file to the project, and add the file name to your app's plist array
CFBundleIconFiles~ipad
.
The iPad Pro simulator picks up on the resolution of the file and uses it for the app's icon.
However, it does appear that you can't use asset catalogs for the iPad Pro icon. I attempted to migrate an existing icon set into an asset catalog, and it did not carry over the 167x167 icon file. There appears to be no slot for it, and if an asset catalog is used, the plist's icon files are ignored.
For now, it seems that you can either choose between dropping the asset catalog altogether, or just waiting until Apple fixes the problem (and accepting an upscaled 152x152 icon until then).
Solved.
What fixed it for me was adding [email protected] under the CFBundlePrimaryIcon key.
I originally tried adding under the CFBundleIcons~ipad key which did NOT work. I am not even sure if CFBundleIcons~ipad key is needed but I am afraid to remove it now.
- Building for Generic iOS Device
- Not using asset catalog.
- Xcode 7.3 and Qt 5.6.0
File: Info.plist
<key>DTPlatformVersion</key>
<string>8.3</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>[email protected]</string>
<string>Icon-72.png</string>
<string>[email protected]</string>
<string>Icon-76.png</string>
<string>[email protected]</string>
<string>[email protected]</string>
</array>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>[email protected]</string>
<string>Icon-72.png</string>
<string>[email protected]</string>
<string>Icon-76.png</string>
<string>[email protected]</string>
<string>[email protected]</string>
</array>
</dict>
</dict>
</dict>
The easiest way to solve this problem is:
- Delete existing AppIcon file
- Create a new AppIcon file
- Add the missing icons (the iPad and other icon options will now be provided)
Also make sure the dimensions are correct. If the AppIcon file says 83.5 points with 2x file size then the dimension should be 167x167 png format etc.
Xcode 14+
Go to Images > AppIcon > Right handside iOS dropdown > Select All Sizes
© 2022 - 2024 — McMap. All rights reserved.