[英]The value of the CFBundleDocumentTypes key in the Info.plist must be an array of dictionaries
We are getting the below issue while uploading our app to app store although we are are not using CFBundleDocumentTypes in the app and the previous version uploaded successfully last week尽管我们没有在应用程序中使用 CFBundleDocumentTypes 并且上周成功上传了以前的版本,但我们在将我们的应用程序上传到应用程序商店时遇到了以下问题
ERROR ITMS-90149: "This bundle is invalid. The value of the CFBundleDocumentTypes key in the Info.plist must be an array of dictionaries, with each dictionary containing at least the CFBundleTypeName key.”错误 ITMS-90149:“此包无效。Info.plist 中 CFBundleDocumentTypes 键的值必须是字典数组,每个字典至少包含 CFBundleTypeName 键。”
How can we solve this?我们如何解决这个问题?
XCODE 11.3.1 XCODE 11.3.1
thanks.谢谢。
hi can you open your info.plist file as a source and check if your CFBundleDocumentTypes key has the correct format ie嗨,您可以将 info.plist 文件作为源打开并检查您的 CFBundleDocumentTypes 密钥是否具有正确的格式,即
<key>CFBundleDocumentTypes</key>
<array>
<dict>
</dict>
</array>
I guess in your case you are also missing CFBundleTypeName key which is a must ie我想在你的情况下你也缺少 CFBundleTypeName 键,这是必须的,即
<key>CFBundleTypeName</key>
<string>Your App</string>
After So many hours of research finally made a successful upload to app store.经过这么多小时的研究终于成功上传到应用商店。
It seems apple have some changes in the submission of app.看来苹果在提交应用程序方面有一些变化。
we have the below in the info.plist
which was working normally for the past 10 submission我们在info.plist
中有以下内容,过去 10 次提交工作正常
<key>UTExportedTypeDeclarations</key>
<array>
<string>public.url</string>
<string>public.plain-text</string>
<string>public.image</string>
</array>
After removing it and uploading to store everything worked normally Dont know what is that related to CFBundleDocumentTypes
but that was the reason删除它并上传到存储后一切正常不知道与CFBundleDocumentTypes
有什么关系,但这就是原因
Solution: (You are missing some keys & values)解决方案:(您缺少一些键和值)
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string></string>
</dict>
</array>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.