Skip to content

Improve retrieving installed Xcode versions

Compare
Choose a tag to compare
@maxim-lobanov maxim-lobanov released this 15 Oct 06:19
· 20 commits to master since this release
dfa1339

Previously, we retrieved the version of Xcode from Xcode app name. Examples:

  • Xcode_12 -> 12.0.0
  • Xcode_12.2 -> 12.2.0
  • Xcode_12.2.1 -> 12.2.1

This way is not reliable enough because currently GitHub runners contain Xcode 12.0.1 on path Xcode_12.app and it is impossible to determine it. We shouldn't rely on app name.
Instead we can parse <XCODE_ROOT>/Contents/version.plist file and read version from it.