Ran into an issue, where for some reason, on one of my Macs, XCode swift works fine, but on another, I got an error like:
$ xcrun --sdk macosx --find xctest
xcrun: error: unable to find utility “xctest”, not a developer tool or in PATH
I should run
$ sudo xcode-select -s /Applications/Xcode.app/