The bundle's Info.plist does not contain a CFBundleVersion key or its value is not a string

23,951

Solution 1

I have the same issue with CFBuildVersion and than i found that in my project Target there is no build version inserted.

So i have just inserted build version and issue solved. enter image description here

Solution 2

I followed solutions from everywhere and these are the steps I ended up with that worked for me:

Solution:

  1. Open the terminal and fix any relevant issues flutter doctor displays:

flutter doctor

  1. Run flutter clean

enter image description here

  1. Delete the Podfile, Podfile.lock and the Pods directory from your ios project

enter image description here

  1. Open the Runner.xcworkspace project in Xcode

enter image description here

  1. Update the build number as @Hardik Vyas mentioned

enter image description here

  1. As @iDevOrz mentioned, Erase All Content and Settings from the simulator

enter image description here

  1. Clean, build and run the app in Xcode

Solution 3

I have the same problem.

I fix it by Simulator menu -> Hardware -> Erase All Content and Setting.

Maybe it's a Simulator bug.

Solution 4

The fix for me was to add a build number to the target. Click on your target, go to General, then underneath Identity is a field for Build.

Solution 5

Just add version and build number

enter image description here

Share:
23,951
bilaldogan
Author by

bilaldogan

Updated on February 10, 2022

Comments

  • bilaldogan
    bilaldogan over 2 years

    Xcode is build the project and when build is success, I get this message "The bundle's Info.plist does not contain a CFBundleVersion key or its value is not a string". What is that mean. There is my info.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></key>
        <string></string>
        <key>Additional_Version_String</key>
        <string>Updated on build</string>
        <key>CFBundleDevelopmentRegion</key>
        <string>en</string>
        <key>CFBundleDisplayName</key>
        <string>${PRODUCT_NAME}</string>
        <key>CFBundleExecutable</key>
        <string>${EXECUTABLE_NAME}</string>
        <key>CFBundleIcons</key>
        <dict/>
        <key>CFBundleIcons~ipad</key>
        <dict/>
        <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>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleShortVersionString</key>
        <string>1.0</string>
        <key>CFBundleVersion</key>
        <string>1</string>
        <key>Commit_Short_Hash</key>
        <string>Updated on build</string>
        <key>ITSAppUsesNonExemptEncryption</key>
        <false/>
        <key>LSRequiresIPhoneOS</key>
        <true/>
        <key>NSContactsUsageDescription</key>
        <string>Vialer needs access to your contacts to make calling to your contacts possible</string>
        <key>NSMicrophoneUsageDescription</key>
        <string>Vialer needs access to your microphone to make calling possible</string>
        <key>UIBackgroundModes</key>
        <array>
            <string>audio</string>
            <string>fetch</string>
            <string>remote-notification</string>
            <string>voip</string>
        </array>
        <key>UIMainStoryboardFile</key>
        <string>MainStoryboard</string>
        <key>UIRequiredDeviceCapabilities</key>
        <array>
            <string>armv7</string>
        </array>
        <key>UIRequiresPersistentWiFi</key>
        <true/>
        <key>UIStatusBarStyle</key>
        <string>UIStatusBarStyleBlackTranslucent</string>
        <key>UIStatusBarTintParameters</key>
        <dict>
            <key>UINavigationBar</key>
            <dict>
                <key>Style</key>
                <string>UIBarStyleDefault</string>
                <key>Translucent</key>
                <true/>
            </dict>
        </dict>
        <key>UISupportedInterfaceOrientations</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
        </array>
        <key>UIViewControllerBasedStatusBarAppearance</key>
        <true/>
    </dict>
    </plist>