Some Mac command line customers working with nodejs and npm may even see an error message and command failure alongside the strains of “xcode-select: error: instrument ‘xcodebuild’ requires Xcode, however lively developer listing ‘/Library/Developer/CommandLineTools’ is a command line instruments occasion”. This error message typically seems after updating MacOS, migrating Macs, or
When you expertise this error message, you’ll seemingly be capable to repair it somewhat merely.
Resolution 1: Set up Command Line Instruments
The best resolution is solely to set up command line instruments on the Mac, which might be carried out from the command line. You can too merely set up the complete Xcode suite from the Mac App Retailer should you’re inclined to take action.
- Launch the Terminal and enter the next command to provoke the set up of Command Line Instruments
- Proceed with set up when prompted
xcode-select --install
That alone might repair the “xcode-select error xcodebuild requires Xcode” error message.
Resolution 2: Change Listing for Command Line Instruments
Generally, should you put in Xcode and Command Line Instruments individually, you might have to re-specify the listing that’s in use for command line instruments with the next command entered into the Terminal:
sudo xcode-select --switch /Library/Developer/CommandLineTools
Resolution 3: Set up Xcode and Change Location for Command Line Instruments
One other method entails the complete Xcode bundle which you’ll be able to obtain from Apple.
- Open Xcode on the Mac, then pull down the Xcode menu and select Preferences
- Go to “Places” and choose the correct Command Line Instruments
Resolution 4: Set up Xcode into /Functions, Change Listing Accordingly
And at last, one other resolution that has labored for some customers when the above approaches don’t work, is to put in Xcode from the Mac App Retailer into the /Functions/ listing on the Mac. After Xcode is put in on the Mac, open the Terminal and enter the next path:
sudo xcode-select -s /Functions/Xcode.app/Contents/Developer
–
Which of those methods labored to repair the “xcode-select: error: instrument ‘xcodebuild’ requires Xcode, however lively developer listing ‘/Library/Developer/CommandLineTools’ is a command line instruments occasion” error message for you in your Mac? Did you discover one other resolution? Tell us within the feedback.
Associated