Search code examples
iosxcodeappicon

Missing required icon file. The bundle does not contain an app icon for iPad of exactly '167x167' pixels, in .png format when trying to upload app


I successfully uploaded my app on Xamarin forms but after it was uploaded I received this in an email from apple:

"Missing required icon file. The bundle does not contain an app icon for iPad of exactly 167x167 pixels, in .png format ."

So it wants an image in my resources file I suppose (not in info.plist icons as they are not asking for 167x there) but should I name it: [email protected] or Icon-174.png?


Solution

  • I've had this particular problem in the last couple of days.

    The iPad icon didn't show within the Info.plist and kept giving the warning you're getting right now.

    My fix was to manually add the icon [email protected] to the resources folder ( as Prashant pointed out ) and add this to the Info.plist:

    <key>CFBundleIconFiles</key>
    <array>
        <string>Icon-40.png</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
        <string>Icon-76.png</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
        <string>Icon-Small-40.png</string>
        <string>[email protected]</string>
        <string>Icon-Small.png</string>
        <string>[email protected]</string>
        <string>[email protected]</string>
    </array>
    

    I used to work with Asset Catalog but I couldn't get it to work with the iPad Pro icon.