Recently when trying to create a new Vapor project, I encountered an error with my macOS Mojave installation. The installation went all fine with brew but when I ran
vapor xcode, here is what I got:
$ vapor xcode 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:
I searched for solutions and found this post on Apple’s Developers Forum. Basically, the commands you need to run before running
vapor xcode is:
sudo xcode-select --reset
That will reset the tools path to default and xcode project will generate!