xcode验证错误:info.plist文件缺少必需的密钥:CFBundleVersion [英] xcode VALIDATION error: The info.plist file is missing the required key: CFBundleVersion
本文介绍了xcode验证错误:info.plist文件缺少必需的密钥:CFBundleVersion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我一直在互联网上寻找解决此问题的方法,只找到1个,但没有解决:/
hi guys Ive been searching all the internet looking for a solution to this problem, only found 1 and it didn't solve it :/
我尝试在摘要中以及仍然存在相同错误的plist文件中键入版本号
I've tried typing the version number in the summary and in the plist file still having the same error
CFBundleVersion虽然存在于plist文件中
the CFBundleVersion exists though in the plist file
<?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>
推荐答案
您需要转到info.plist,添加一个名为"Application Category"的新密钥,然后选择您设计的类别.
You need to go to info.plist, add a new key named: "Application Category" and select your designed category.
这篇关于xcode验证错误:info.plist文件缺少必需的密钥:CFBundleVersion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文