macos xcrun error invalid active developer path 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
$ sudo xcode-select -r
$ sudo xcode-select --switch /Library/Developer/CommandLineTools