安装

xcode-select --install

Xcode版本切换

显示当前使用的xocde版本

$ xcode-select --print-path

选择Xcode中的默认版本

$ sudo xcode-select -switch /Applications/Xcode.app

xcode安装之后打开失败,请手动安装这个软件,在xcode原文件里面

/Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg