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

后端 未结 16 1450
醉梦人生
醉梦人生 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条回答
  •  星月不相逢
    2020-12-15 03:10

    In my case, the Build Version field was empty. I added the value there but still it didn't work. I tried killall -9 CoreSimulatorBridge command and that also didn't help. Finally when I checked the xml of the info.plist (Open as -> Source code), the CFBundleVersion key was not present and the version was displayed in the info.plist through CFBundleShortVersionString.

    I just added the CFBundleVersion key as given below in the info.plist and it worked.

    CFBundleVersion $(MARKETING_VERSION)

    I hope it helps someone else too.

提交回复
热议问题