Error building vapor after AppStore Updates

I am now getting an error building vapor (was working fine):

$ vapor new hello
$ cd hello
$ vapor build
No .build folder, fetch may take a while…
Fetching Dependencies [ • ]
Error: backgroundExecute(code: 1, error: “warning: ‘fetch’ command is deprecated; use ‘resolve’ instead\nerror: terminated(72): xcrun --sdk macosx --find xctest output:\n \n\n”, output: “”)

$ vapor xcode -y
Generating Xcode Project [Failed]
error: terminated(72): xcrun --sdk macosx --find xctest output:
Error: Could not generate Xcode project: error: terminated(72): xcrun --sdk macosx --find xctest output:

$ xcode-select -p
/Library/Developer/CommandLineTools

I have macOS High Sierra 10.15.5 update
AppStore also recently installed :
“Command Line Tools (macOS High Sierra version 10.13) beta 1 for Xcode version 10.0” (not sure why it wanted to install the beta?)
“Command Line Tools (macOS High Sierra version 10.13) for Xcode version 9.4”
“Xcode 9.4 includes Swift 4.1 and SDK’s for iOS 11.4”

Thanks
Chris Sullivan

Yeah those command line tools are wrong! Use xcode-select to point it to your Xcode.app (or the beta if you want to try that out) and then run it again. Also check that you’ve opened up the new Xcode and accepted any new agreements

3 Likes

Thanks Tim,

Really appreciate your help!

I used this to get it working:
$ sudo xcode-select -switch /Applications/Xcode.app/
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

Thanks for writing a great book - am really enjoying working my way through it.

6 Likes

Glad to hear you’re enjoying it!

Thanks… i think this must update to the book !