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

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

    I had the same problem. I find the Xcode 11 Beta Release Notes had explain it.

    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)
    

    And this link is the format of CFBundleVersion.

    When I resolved this problem, I found out if having the CFBundleVersion problem when running App for the first time. Then it always has problem no matter whether the format is correct or not. So I restart the Xcode and the Simulator, and change the CFBundleVersion to a correct format, the App running correctly.

提交回复
热议问题