[엑스코드(Xcode)오류]xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance 오류 처리
엑스코드(Xcode) 개발툴에서 빌드하는 과정에 발생하는 오류이다. CommandLineTools를 사용하지 못하는 오류가 발생!!
[해결방법]
xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools
# Change the path if you installed Xcode somewhere else.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
[REFERENCE]
https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error
https://github.com/nodejs/node-gyp/issues/569