ios - xcode 验证错误 : The info. plist 文件缺少所需的 key :CFBundleVersion

标签 ios xcode validation plist

我已经尝试在摘要和 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。如果这不起作用,请检查项目 Pane ,总而言之,如果版本和构建都显示 1.0。

关于ios - xcode 验证错误 : The info. plist 文件缺少所需的 key :CFBundleVersion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14530830/

相关文章:

ios - UITableViewCell 中的 ImageView 不会显示

iphone - iOS 5 中 Xcode 4.2 中的新 "objects library"

ruby-on-rails - 检查电子邮件域是否有效

ios - App Store 审核指南 : 12. 1 - 集成 Itunes 播客

ios - 使用可用的 : <unknown>:0: error: 'xxx' is only available on iOS 11. 0 或更新版本覆盖 open var

ios - UISegmentedControl 的 3 段中的第一个占宽度的一半

c++ - 为什么Xcode 4.3静态分析这段代码会报逻辑错误?

delphi - 如何防止用户根据其值离开 DBGrid 的单元格

forms - Symfony2表单重复错误也触发空白错误

ios - 根据 UICollectionView 中的图像动态更改单元格大小