包中的info.plist必须包含CFBundleVersion键

时间:2017-05-02 11:38:55

标签: swift validation swift2 plist info.plist

我尝试在使用新版本上传到苹果之前验证应用,我收到此错误:

“软件包中的info.plist必须包含CFBundleVersion密钥。”

但是什么包?它可能与框架有关吗?

这两个键都在文件中,所以我不知道发生了什么

<?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>CFBundleIdentifier</key>
        <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>${PRODUCT_NAME}</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>2.0</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
        <string>2.0</string>
        <key>Fabric</key>
        <dict>
            <key>APIKey</key>
            <string></string>
            <key>Kits</key>
            <array>
                <dict>
                    <key>KitInfo</key>
                    <dict/>
                    <key>KitName</key>
                    <string>Crashlytics</string>
                </dict>
            </array>
        </dict>
        <key>ITSAppUsesNonExemptEncryption</key>
        <false/>
        <key>LSApplicationQueriesSchemes</key>
        <array>
            <string>comgooglemaps</string>
        </array>
        <key>LSRequiresIPhoneOS</key>
        <true/>
        <key>UIAppFonts</key>
        <array>
            <string>ProximaNova-Light.otf</string>
            <string>ProximaNova-Semibold.otf</string>
            <string>ProximaNova-Regular.otf</string>
            <string>ProximaNova-LightItalic.otf</string>
        </array>
        <key>UIBackgroundModes</key>
        <array>
            <string>remote-notification</string>
        </array>
        <key>UIFileSharingEnabled</key>
        <true/>
        <key>UILaunchStoryboardName</key>
        <string>LaunchScreen</string>
        <key>UIMainStoryboardFile</key>
        <string>Main</string>
        <key>UIRequiredDeviceCapabilities</key>
        <array>
            <string>armv7</string>
        </array>
        <key>UIStatusBarStyle</key>
        <string>UIStatusBarStyleLightContent</string>
        <key>UISupportedInterfaceOrientations</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
        </array>
        <key>UISupportedInterfaceOrientations~ipad</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
            <string>UIInterfaceOrientationPortraitUpsideDown</string>
            <string>UIInterfaceOrientationLandscapeRight</string>
            <string>UIInterfaceOrientationLandscapeLeft</string>
        </array>
        <key>UIViewControllerBasedStatusBarAppearance</key>
        <true/>
    </dict>
    </plist>

1 个答案:

答案 0 :(得分:2)

有时iTunes会将您捆绑版本与上传版本之间的冲突联系起来(即使它未发布),因此只需将当前版本从2.0升级到2.1或3.0就可以解决您的问题,请阅读此post以了解相关信息更多关于任何其他可能的问题。