今天在練習編譯node-gyp
,結果編譯時產生問題
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
解決方法可以參考node-gyp #539。
基本解決方法就是:
- 安裝xcode/xcode-beta
- 在終端機輸入以下指令:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer