Cannot run application on simulator after installing Xcode 11 - CFBundleVersion error

后端 未结 16 1482
梦毁少年i
梦毁少年i 2020-12-15 02:32

Yesterday, I\'ve downloaded beta version of Xcode 11. After that, I\'ve opened my project and tried to run with new Xcode. Unfortunately error has occurred with message:

相关标签:
16条回答
  • 2020-12-15 03:30

    Hi I've resolved just now with this: I had in my info.plist only this key:

    <key>CFBundleShortVersionString</key>
    <string>2.1</string>
    

    ... and so now all works adding this:

    <key>CFBundleVersion</key>
    <string>2.1</string>
    

    with the simulator that works again....

    NOTE: without CFBundleVersion my app had worked perfectly on physical device!!!

    0 讨论(0)
  • 2020-12-15 03:31

    I faced a similar issue for hours, this is what actually worked for me.

    1. Navigate to the Resources folder
    2. Find Info.plist
    3. Add a key-value pair: CFBundleShortVersionString:
    4. Clean Build Folder
    5. Clear Device Cache
    6. Run and Build
    0 讨论(0)
  • 2020-12-15 03:33

    I ran into this same issue as well.

    I didn't get so far as to trying some of the other options provided here, but I was able to get back to building for simulator by simply deleting the /DerivedData directory.

    If you're unsure as to where to find it, simply do this: Xcode -> Preferences -> Locations and select the arrow next to the path for Derived Data

    0 讨论(0)
  • 2020-12-15 03:35

    In Xcode Version 12.0 beta 3 I was having continuous problem launching the Simulator. I tried all the above mentioned techniques. Nothing worked. I solved by adding this property to the Info.plist: Bundle version string (short) and setting its value to 1.0 See Image Here

    0 讨论(0)
提交回复
热议问题