xcrun: error: active developer path ("/Users/mac/Downloads/Xcode-beta.app/Contents/Developer") code example
Example: invalid active developer path (/applications/xcode.app/contents/developer)
$ sudo xcode-select -r
$ sudo xcode-select --switch /Library/Developer/CommandLineTool