簡體   English   中英

Info.plist 中 CFBundleDocumentTypes 鍵的值必須是字典數組

[英]The value of the CFBundleDocumentTypes key in the Info.plist must be an array of dictionaries

盡管我們沒有在應用程序中使用 CFBundleDocumentTypes 並且上周成功上傳了以前的版本,但我們在將我們的應用程序上傳到應用程序商店時遇到了以下問題

錯誤 ITMS-90149:“此包無效。Info.plist 中 CFBundleDocumentTypes 鍵的值必須是字典數組,每個字典至少包含 CFBundleTypeName 鍵。”

在此處輸入圖像描述

在此處輸入圖像描述

我們如何解決這個問題?

XCODE 11.3.1

謝謝。

嗨,您可以將 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM