我在尝试将应用程序上传到 App Store 时遇到此错误。我不知道这是什么原因。
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 中的样子。
或(打开 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 及更高版本中可用。
关于ios - 警告 ITMS-90788 : "Incomplete Document Type Configuration",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57183421/