简体   繁体   English

Info.plist 中 CFBundleDocumentTypes 键的值必须是字典数组

[英]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>

to get a complete idea of code refer here要完整了解代码,请参阅此处

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.

相关问题 当我验证我的应用程序时,CFBundleDocumentTypes键必须是字典数组 - CFBundleDocumentTypes key must be an array of dictionaries when I validate my app 版权密钥和价值不在info.plist中 - Copyright Key and Value Not in info.plist 我可以在另一个Info.plist键值的内部使用Info.plist中一个键的值吗? - Can I use the value for one key in Info.plist inside the value of another Info.plist key? &#39;FABException&#39;,原因:&#39;[Fabric] Info.plist 键“Fabric”的值必须是 NSDictionary。&#39; 使用 Firebase 和 Crashlytics 时 - 'FABException', reason: '[Fabric] Value of Info.plist key “Fabric” must be a NSDictionary.' when using Firebase and Crashlytics Info.plist 文件中的密钥 CFBundleShortVersionString [3.0.0] 的值必须包含比先前批准的版本更高的版本 - The value for key CFBundleShortVersionString [3.0.0] in the Info.plist file must contain a higher version than that of the previously approved version 错误:包中的 Info.plist 必须包含 CFBundleIdentifier 键 - Error: The Info.plist in the package must contain the CFBundleIdentifier key 应用程序的 Info.plist 必须包含 NSMotionUsageDescription 键 - The app's Info.plist must contain an NSMotionUsageDescription key Phonegap - 包中的 Info.plist 必须包含 CFBundleVersion 键 - Phonegap - The Info.plist in the package must contain the CFBundleVersion key 应用的 Info.plist 必须包含一个 NSContactsUsageDescription 键 - The app's Info.plist must contain an NSContactsUsageDescription key NSPhotoLibraryUsageDescription 键必须存在于 Info.plist 中才能使用相机胶卷 - NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM