How to add the 167x167 iPad Pro app icon?
Asked Answered
C

6

27

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?

Cabbala answered 22/10, 2015 at 4:13 Comment(0)
H
14

There is now a space for this in Xcode 7.2

App icon placeholder

Xcode 7.2 will also warn if it is not present

Xcode warning

Hobgoblin answered 8/12, 2015 at 21:57 Comment(2)
I had a look and I don't see any asset catalog. Google says it appears in the project navigator, but it isn't in mine. Is this just created for new projects?Uriia
developer.apple.com/library/ios/recipes/…Hobgoblin
B
36

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:

  1. In ImageAssets, click on AppIcon to highlight it.
  2. Open up the right hand utility panel by clicking on the panel icon in the top right corner of xCode.
  3. Within the utility panel, click the Attributes Inspector (looks like a pencil pointing down through a line).
  4. Now you should see two dropdowns in the panel that say iPhone and iPad. Select iPad and select "iOS7.0 and Later".
Barnum answered 8/2, 2017 at 15:8 Comment(4)
Thumbs up. Don't know why you answer didn't even get a up vote. This is well explained.Militiaman
This did it for me!Hypocrisy
I did the same thing; iPhone only - then found out about the iPad reqs. Your advice still works on iOS 9. Thanks.Knuth
This is still the correct answer in xcode 11.2.1 p.s - I hate xcodeBrainbrainard
H
14

There is now a space for this in Xcode 7.2

App icon placeholder

Xcode 7.2 will also warn if it is not present

Xcode warning

Hobgoblin answered 8/12, 2015 at 21:57 Comment(2)
I had a look and I don't see any asset catalog. Google says it appears in the project navigator, but it isn't in mine. Is this just created for new projects?Uriia
developer.apple.com/library/ios/recipes/…Hobgoblin
I
11

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).

Impeach answered 12/11, 2015 at 12:33 Comment(3)
yeah i switched over to the asset catalog a while back, and don't see any spot for the ipad pro iconCabbala
@Mohamed which version of Xcode are you using? It only appeared in 7.2Hobgoblin
When the iPad Pro was launched, the slot in the asset catalog didn't exist yet. This answer was needed at the time, but we're probably all updated to the newest version these days.Impeach
N
9

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>
Neuritis answered 18/4, 2016 at 21:7 Comment(0)
C
4

The easiest way to solve this problem is:

  1. Delete existing AppIcon file
  2. Create a new AppIcon file
  3. 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.

Choosy answered 2/9, 2017 at 9:27 Comment(1)
How do you create a new AppIcon file?!Ipecac
S
1

Xcode 14+

Go to Images > AppIcon > Right handside iOS dropdown > Select All Sizes

Spurge answered 1/10, 2023 at 7:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.