xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Deve

以上错误是因为安装了 xcode , 但并不是系统默认的位置, 所以可以使用以下命令把 xcode 的路径修改为你安装的位置即可

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

红色部分就是你安装的 xcode 的自定义路径.

posted @ 2015-12-18 18:22  Debm.Zhang  阅读(8399)  评论(0编辑  收藏  举报