Error: tool ’xcodebuild’ requires Xcode… on macOS
If you get the following error with npm install
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory'/Library/Developer/CommandLineTools' is a command line tools instance
then to fix it try
- (optional) Install
Xcode
- go to the AppStore and download the Xcode. - Point the
xcode-select
developer directory to the appropriate directory from withinXcode.app
. To do this, run
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Leave a comment