CFBundleVersion 问题

下载了Xcode 11 Beta 版后,运行以前的工程到模拟器,有可能发生CFBundleVersion不对的问题:The application’s Info.plist does not contain CFBundleVersion.
Ensure your bundle contains a CFBundleVersion with a valid semantic version number.
Xcode 11 Beta 问题汇总
Xcode 11 Beta Release Notes中,看到了相关的说明:
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)
在CFBundleVersion中查看相关格式,发现格式有问题。
但是如果第一次运行的时候出现了CFBundleVersion的Issue,以后无论怎么改CFBundleVersion都依然存在问题。
在修改为正确格式的CFBundleVersion后,重启Xcode和Simulator,再次运行,发现运行成功。

未完待续

参考

https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_release_notes?language=objc

相关文章:

  • 2021-12-28
  • 2021-10-16
  • 2021-10-31
  • 2021-08-04
  • 2022-01-24
  • 2021-07-07
  • 2021-07-14
  • 2021-08-18
猜你喜欢
  • 2021-06-13
  • 2021-09-30
  • 2021-10-02
  • 2021-07-09
  • 2021-12-07
  • 2021-06-07
相关资源
相似解决方案