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

First off: I´m not sure if this is the right forum for this question. If it´s not, i apologize..


I want to implement SMS from Twilio, and are following this guide: https://www.twilio.com/blog/2018/03/sending-text-messages-in-swift-with-twilio.html


When I try to test using the command: swift build && ./.build/debug/MyDrive/MyFolder/MySwiftProject I get the following error:


error: terminated(72): xcrun --sdk macosx --find xctest output:

xcrun: error: unable to find utility "xctest", not a developer tool or in PATH


What is this error? And what can have gone wrong?

Do you have Xcode installed? If so, does

xcode-select
point to it?

For example, if you have Xcode installed in the usual place, you should see this:

$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
error: terminated(72): xcrun --sdk macosx --find xctest output: xcrun: error: unable to find utility "xctest", not a developer tool or in PATH
 
 
Q