select: error: tool 'xcodebuild' requires Xcode
今天第一次用Xcodebuild这个tool来 build project,发现报下面的错:
select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
不知道怎么转换这个,于是查了一些资料,解决方法如下:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
Knowledge, like candlelight, can illuminate a person and countless people.