Previously, we retrieved the version of Xcode from Xcode app name. Examples:
Xcode_12->12.0.0Xcode_12.2->12.2.0Xcode_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.