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

后端 未结 16 1452
醉梦人生
醉梦人生 2020-12-15 02:50

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条回答
  •  猫巷女王i
    2020-12-15 03:31

    It's a new feature in Xcode11.

    In release note it said:

    Bundles without a CFBundleVersion are invalid and can’t be properly installed on devices or simulators. CoreSimulator now checks and rejects such bundles earlier in the process with a clearer error message. (49892531)

    You can:

    1. Edit your CFBundleVersion by the style of this LINK
    2. Reset your Xcode and simulator
    3. Run again, you will see it works again

    When you run app in simulator success, you can change back your CFBundleVersion again, you will found it still can work XD

提交回复
热议问题