xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
The Mac is trying to update the package via yarn, and you get this message. This is an error that occurs while installing node-gyp
. How do I solve this?
Here Reviewed and resolved.
sudoxcode-select -s/Applications/Xcode.app/Contents/Developer
makes it work.
XCODE must be installed in /Applications before this command can be entered.
© 2025 OneMinuteCode. All rights reserved.