[英]This bundle is invalid. The Info.plist file is missing the required key: CFBundleVersion
[英]xcode VALIDATION error: The info.plist file is missing the required key: CFBundleVersion
我嘗試在摘要和 plist 文件中輸入版本號,但仍然出現相同的錯誤。
CFBundleVersion 雖然存在於 plist 文件中:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string></string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Calmness_icon_ratina.png</string>
<string>Default.png</string>
<string>Default@2x.png</string>
<string>Calmness_icon57.png</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.jassem.calmness</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
很可能是 xcode 本身的問題。 嘗試清理,刪除管理器中的派生數據,重新啟動 Xcode。 如果這不起作用,請在項目窗格中檢查,總而言之,如果版本和構建都說 1.0。
出於某種原因,Xcode 找不到提到的密鑰。
您需要轉到 info.plist,添加一個名為:“Application Category”的新鍵,然后選擇您設計的類別。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.