Confirm the selected Xcode path
Record both the Xcode version in the graphical interface and the command-line tools path. When multiple versions are installed, the build script must select one explicitly so interactive sessions and runners do not use different toolchains.
$ xcodebuild -version
$ xcode-select -p
$ xcrun --find swift