how to upgrade xcode code example Example: xcode update sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install