记录OS系统XCODE版本引发的问题
xcode-select: error: command line tools are already installed, use “Software Update” to install
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
softwareupdate --list
softwareupdate --install -a
引用:https://stackoverflow.com/questions/34617452/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 --install to instal