macos update xcode command line code example Example: update xcode command line sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install