警告ITMS-90788:“文档类型配置不完整”

Sat*_*as6 6 xcode ios app-store-connect

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

尝试上传时出错

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

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

Him*_*ima 10

这是LSHandlerRank 键在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>
Run Code Online (Sandbox Code Playgroud)

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

确定启动服务如何在声明自己为此类文件的编辑者或查看者的应用程序中对该应用程序进行排名。
可能的值包括:
所有者(此应用程序是此类型文件的主要创建者),
默认值(此应用程序是此类型文件的打开程序;如果未指定排名,则也使用此值),
备用(此应用程序是此类型文件的辅助查看器)和“无”(从不选择此应用打开该类型的文件,但它接受此类文件的删除)。
Launch Services使用LSHandlerRank的值来确定用于打开此类型文件的应用程序。
优先顺序为:所有者,默认值,备用。此密钥在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


Ven*_*ari 5

我从苹果收到如下警告:

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

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>
Run Code Online (Sandbox Code Playgroud)