在终端输入:xcode-select --install弹出的对话框选择安装。引用: http://bbs.pcbeta.com/viewthread-1437030-1-1.html http://www.v2ex.com/t/50551