在shell中输入:

xcode-select -p
显示

/Applications/Xcode.app/Contents/Developer
代表完成安装

二、切换Xcode版本

在shell中, 输入(后面的路径为已安装的且要切换到得Xcode路径):

sudo xcode-select -s /Applications/Xcode5.0.2/Xcode.app/Contents/Developer
查看当前Xcode版本

gcc --version