A build using fastlane can fail with the following error message:
Build failed to compile with Xcode-14.2 - Found multiple versions of Xcode in '/Applications/'
Our Xcode stacks can indeed contain multiple versions of Xcode but in most cases, this should not cause a problem. If the error occurs, we recommend checking the full log of the
xcodebuild command. To do so, turn off
xcodebuild_formatter in fastlane, or export the logs as a build artifact. The actual root cause will be visible in the log and that is absolutely needed to debug this issue.