xcode-slect:error :tool 'xcodebuild' required xcode, but active developer directory code example
Example: xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer),
$ sudo xcode-select -r
$ sudo xcode-select --switch /Library/Developer/CommandLineTools