How to update Xcode from command line
What you are actually using is the command to install the Xcode command line tools – xcode-select –install. Hence the error message you got – the tools are already installed. The command you need to update Xcode is softwareupdate command [args …]. You can use softwareupdate –list to see what’s available and then softwareupdate –install -a to install all updates or softwareupdate … Read more