I created a Swift executable package using
swift package init --type executable. When running
swift build or
swift run, it tries to find
xctest but fails.
swift build # error: terminated(72): xcrun --sdk macosx --find xctest output: # xcrun: error: unable to find utility "xctest", not a developer tool or in PATH
I have just (re-)installed a fresh Command Line Tools version. I don't want to (and don't have the disk space available) to download XCode.
xcode-select --reset does not help either.
- Swift version
5.1.3 (swiftlang-1100.0.282.1 clang-118.104.22.168)
How can I build the package, without
swift build looking for
Thanks for your help.