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