【问题标题】:WARNING ITMS-90788: "Incomplete Document Type Configuration"警告 ITMS-90788:“文档类型配置不完整”
【发布时间】:2026-02-09 16:30:01
【问题描述】:

我在尝试将应用上传到 App Store 时收到此错误。我不知道这是什么原因。

警告 ITMS-90788:“文档类型配置不完整。'Bundle-ID' Info.plist 中的 CFBundleDocumentTypes 字典数组应包含 CFBundleTypeName 的 LSHandlerRank 值'MKDirectionsRequest' 条目。有关 LSHandlerRank 键的更多信息,请参阅 https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW1。"

有人可以为我提供有关如何解决此问题的解决方案吗?

【问题讨论】:

  • 您的 Info.plist 文件中有哪些文档类型?
  • 这个错误看起来不言自明,你需要帮助哪一部分?
  • @m1sh0 我的 plist 中没有任何文档类型。它是空的。
  • @Scriptable 我需要有关如何解决此问题的帮助。
  • 您可以添加您的信息 plist 文件吗?你也用豆荚吗?如果你有一些外部库,你如何添加它们?

标签: ios xcode app-store-connect


【解决方案1】:

这是 LSHandlerRank 键在 info.plist 中的样子。

(打开 info.plist 作为“源代码”并添加)

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array/>
        <key>CFBundleTypeName</key>
        <string>Text</string>
        <key>LSHandlerRank</key>    //Key you need to fix your issue //
        <string>Alternate</string>  //Here value can be Owner, Default or Alternate
        <key>LSItemContentTypes</key>
        <array>
            <string>public.plain-text</string>
        </array>
    </dict>
</array>

这是来自 Apple 的说明,为什么以及如何提供 LSHandlerRank 密钥。

确定启动服务如何在声明自己为此类文件的编辑者或查看者的应用中排名此应用。
可能的值是:
Owner(此应用是此类文件的主要创建者),
默认(此应用是打开器此类文件的数量;如果未指定排名,则也使用此值)、
Alternate(此应用程序是此类文件的辅助查看器)和无(此应用程序从不选择打开这种类型的文件,但它接受这种类型的文件)。
Launch Services 使用 LSHandlerRank 的值来确定用于打开此类文件的应用程序。
优先顺序为: Owner、Default、Alternate。此密钥在 macOS 10.5 及更高版本和 iOS 3.0 及更高版本中可用。

您可以在此链接上找到更多信息:https://developer.apple.com/documentation/uikit/view_controllers/adding_a_document_browser_to_your_app/setting_up_a_document_browser_app

【讨论】:

    【解决方案2】:

    我从 Apple 收到如下警告:

    我们发现您的应用最近交付存在一个或多个问题。您的交付已成功,但您可能希望在下次交付时更正以下问题:

    ITMS-90788:文档类型配置不完整 - 'XXXXXXX' Info.plist 中的 CFBundleDocumentTypes 字典数组应包含 CFBundleTypeName 'MKDirectionsRequest' 条目的 LSHandlerRank 值。

    所以以下 plist 中的条目解决了问题 -

    <key>CFBundleDocumentTypes</key>
        <array>
            <dict>
                <key>CFBundleTypeName</key>
                <string>MKDirectionsRequest</string>
                <key>LSHandlerRank</key>
                <string>Alternate</string>
                <key>LSItemContentTypes</key>
                <array>
                    <string>com.apple.maps.directionsrequest</string>
                </array>
            </dict>
        </array>
        <key>CFBundleExecutable</key>
    

    【讨论】: