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

后端 未结 16 1541
梦毁少年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:19

    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

提交回复
热议问题