【问题标题】:ITMS-90893: Missing required iconITMS-90893:缺少必需的图标
【发布时间】:2022-10-14 15:50:29
【问题描述】:

ios 应用程序目标IOS 12并包含多个方案。 自上周以来,我收到了来自苹果的以下构建拒绝电子邮件:

ITMS-90893: Missing required icon - The bundle does not contain an alternate app icon for iPad of exactly '167x167' pixels, in .png format for iOS versions supporting iPad Pro. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleicons

ITMS-90893: Missing required icon - The bundle does not contain an alternate app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleicons

我已经查看了所有相关论坛并尝试了所有投票最多的解决方案,但我仍然在每个版本中都面临这个问题。

我已经尝试过:

  1. 确保所有图标都存在于 Assets.xassets 的 AppIcon.appiconset 中。
  2. 确保 AppIcon.appiconset 中 Contents.json 中的所有条目都正确列出。
  3. 更新 Xcode (13.1 (13A1030d)) 和 cocoapods (1.11.3)。
  4. 在 info.plist 中添加 CFBundleIconNameCFBundleIconFilesCFBundleIcons~ipad
        <key>CFBundleIconName</key>
            <string>AppIcon-scheme_1</string>
            <string>AppIcon-scheme_2</string>
            <string>AppIcon-scheme_3</string>
        </array>
        <key>CFBundleIcons</key>
        <dict>
            <key>CFBundlePrimaryIcon</key>
            <dict>
                <key>CFBundleIconFiles</key>
                <array>
                    <string>Icon-App-60x60@2x.png</string>
                    <string>Icon-App-1024x1024@1x.png</string>
                    <string>Icon-App-29x29@2x.png</string>
                    <string>Icon-App-60x60@3x.png</string>
                    <string>Icon-App-29x29@3x.png</string>
                    <string>Icon-App-20x20@2x-1.png</string>
                    <string>Icon-App-40x40@2x-1.png</string>
                    <string>Icon-App-20x20@3x.png</string>
                    <string>Icon-App-40x40@3x.png</string>
                </array>
            </dict>
            <key>CFBundleIcons~ipad</key>
            <dict>
                <key>CFBundlePrimaryIcon</key>
                <dict>
                    <key>CFBundleIconFiles</key>
                    <array>
                        <string>Icon-App-20x20@1x.png</string>
                        <string>Icon-App-20x20@2x.png</string>
                        <string>Icon-App-29x29@1x.png</string>
                        <string>Icon-App-29x29@2x-1.png</string>
                        <string>Icon-App-40x40@1x.png</string>
                        <string>Icon-App-40x40@2x.png</string>
                        <string>Icon-App-76x76@1x.png</string>
                        <string>Icon-App-76x76@2x.png</string>
                        <string>Icon-App-83.5x83.5@2x.png</string>
                    </array>
                </dict>
            </dict>
        </dict>
    

    其中 AppIcon-scheme_1、AppIcon-scheme_2 是具有完全相同 appiconset 名称的不同方案。 5. 确保图标在 iphone 和 ipad 中都能正常显示。 6. 提取存档的 ipa 并确保图标存在于目标构建中。

    随后的版本仍然被拒绝。

【问题讨论】:

    标签: ios xcode app-store app-store-connect xcode13


    【解决方案1】:

    在我的例子中,Build-Target 缺少使用的 Icon-Asset 的 Target Membership。项目导航器 - 媒体 - AppIcon.... --> 文件检查器 - 目标成员

    这不是我的第一个版本,我很确定我从未取消选中它,但是这解决了问题

    【讨论】:

      【解决方案2】:

      当我与 Apple 支持人员交谈时,我找到了解决方案。

      问题是项目的所有 AppIcon 必须包含 152 和 167 大小。

      就我而言,我有 13 种不同的方案,其中一个方案在 AppIcon 资产上没有这种大小。即使它不是在存档期间选择的方案,您也必须在您的方案的所有 AppIcon 资产上使用此尺寸。

      【讨论】:

        猜你喜欢
        • 2016-11-21
        • 2017-01-04
        • 2023-04-08
        • 2016-09-27
        • 1970-01-01
        • 2021-09-18
        • 2019-01-19
        • 2018-07-19
        • 1970-01-01
        相关资源
        最近更新 更多