![](/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.