先找最新的Xcode.app下各類命令的位置,結果是在vim
- /Applications/Xcode.app/Contents/Developer/usr/bin
下面,而後修改$PATH的值:xcode
增長上面的路徑到PATH裏面:bash
- export PATH=.:/opt/local/bin:/opt/local/sbin:/Applications/Xcode.app/ Contents/Developer/usr/bin:$PATH
保存退出後app
這時候再打xcodebuild命令,就okui