ios - 警告 ITMS-90788 : "Incomplete Document Type Configuration"

标签 ios xcode app-store-connect

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

Error while trying to upload

WARNING ITMS-90788: "Incomplete Document Type Configuration. The CFBundleDocumentTypes dictionary array in the 'Bundle-ID' Info.plist should contain an LSHandlerRank value for the CFBundleTypeName 'MKDirectionsRequest' entry. Refer to https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW1 for more information on the LSHandlerRank key."

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

最佳答案

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

enter image description here

(打开 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 key 。

确定 Launch Services 如何在声明自己是此类文件的编辑者或查看者的应用程序中对该应用程序进行排名。
可能的值为:
所有者(此应用是此类文件的主要创建者),
默认(此应用是此类文件的开启者;如果未指定排名,也会使用此值),
备用(此应用是此类文件的辅助查看器),以及无(从未选择此应用程序打开此类文件,但它接受此类文件的丢弃)。
Launch Services 使用 LSHandlerRank 的值来确定用于打开此类文件的应用程序。
优先顺序是: 所有者、默认值、备用值。此 key 在 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

关于ios - 警告 ITMS-90788 : "Incomplete Document Type Configuration",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57183421/

相关文章:

ios - 当状态为 "waiting for review"时,iTunes 连接替换二进制文件

xcode - 无法使用可执行文件中的命令行工具归档 Cocoa 应用程序

xcode - 在 Swift 中仅以横向模式打开相机和库

ios - Appstore 连接创建配置文件 api 不起作用

iOS CGRect 在另一个 CGRect 里面

ios - 快速滚动后,粘性 ScrollView subview 的框架不正确。可编译的例子

ios - 具有计算返回值的单元测试展开 segue

iOS 启动屏幕不会停止显示 launchscreen.xib

ios - App Store Connect 上可用县和订阅服务之间的关系

ios - 作为团队成员在两台不同的 Mac 上进行开发