![](/img/trans.png)
[英]CFBundleDocumentTypes key must be an array of dictionaries when I validate my app
[英]The value of the CFBundleDocumentTypes key in the Info.plist must be an array of dictionaries
嗨,您可以将 info.plist 文件作为源打开并检查您的 CFBundleDocumentTypes 密钥是否具有正确的格式,即
<key>CFBundleDocumentTypes</key>
<array>
<dict>
</dict>
</array>
我想在你的情况下你也缺少 CFBundleTypeName 键,这是必须的,即
<key>CFBundleTypeName</key>
<string>Your App</string>
要完整了解代码,请参阅此处
经过这么多小时的研究终于成功上传到应用商店。
看来苹果在提交应用程序方面有一些变化。
我们在info.plist
中有以下内容,过去 10 次提交工作正常
<key>UTExportedTypeDeclarations</key>
<array>
<string>public.url</string>
<string>public.plain-text</string>
<string>public.image</string>
</array>
删除它并上传到存储后一切正常不知道与CFBundleDocumentTypes
有什么关系,但这就是原因
解决方案:(您缺少一些键和值)
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string></string>
</dict>
</array>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.