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

6
我试图在上传新版本到苹果之前验证应用程序,但是我遇到了这个错误:

"The info.plist in the package must contain the CFBundleVersion key."

但是,这个包是什么?它是否与框架有关?文件中已经包含了这两个键,所以我不知道出了什么问题。请您帮我解决这个问题。
<?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>

这是一个本地应用程序吗?您是使用菜单选项还是工具创建存档?我在使用xcodebuild时曾遇到过这种情况。 - lostInTransit
我正在使用Xcode 7.3.1来归档应用程序。 - Leonardo Castanheira
1个回答

3
有时候iTunes连接会将你打包的版本和上传的版本产生冲突(即使没有发布),所以只需将当前版本从2.0升级到2.1或3.0可能会解决问题。要了解其他可能存在的问题,请阅读这篇文章

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接