xcode-select --install

参考:https://aaaaaashu.gitbooks.io/mac-dev-setup/content/XCode/index.html