Cannot install toolbox

When I run swift build -c release --disable-sandbox

I get the result:

terminated(72): xcrun --sdk macosx --find xctest output:
xcrun: error: unable to find utility “xctest”, not a developer tool or in PATH

I have reinstalled Xcode and the command line tools, which did not seem to help. Clearly I have done something wrong now or in the past. Any suggestions?

Thank you

After doing a clean uninstall and reinstall, and modifying the path to point to xctest tool, everything works.

Thanks for looking