[英]The value of the CFBundleDocumentTypes key in the Info.plist must be an array of dictionaries
[英]CFBundleDocumentTypes key must be an array of dictionaries when I validate my app
当我尝试将我的应用验证到App Store时,出现以下错误:
该捆绑包无效。 Info.plist中CFBundleDocumentTypes键的值必须是字典数组,每个字典至少包含CFBundleTypeName键。
这是我的代码:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string>inCommand icon114</string>
</array>
<key>CFBundleTypeName</key>
<string>xxx</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.xxxxxxxx.quizMaker.xxx</string>
</array>
</dict>
<dict/>
</array>
最初将其作为注释,但是可以肯定这是什么问题。
最后一行<dict/>
是一个空字典,其中不包含错误提到的键CFBundleTypeName
。
删除它,就可以了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.