美文网首页
xcode-select: error: tool 'x

xcode-select: error: tool 'x

作者: 路漫漫其修远兮Wzt | 来源:发表于2018-10-25 16:44 被阅读4次

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010962810/article/details/21613745

因为机子里有两个Xcode,所以分别重命名了,但是在运行一个MakeFile时却报了以下错误:

xcodebuild -target "GHUnitIOS (Device)" -configuration Release SYMROOT=build
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
make: *** [default] Error 1

原因是Xcode重命名后,xcodebuild找不到原来的Xcode了。
解决方法:在终端输入命令

xcode-select -switch 新的xcode路径

例如:

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

作者:Jymn_Chen
来源:CSDN
原文:https://blog.csdn.net/jymn_chen/article/details/21613745
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章

网友评论

      本文标题:xcode-select: error: tool 'x

      本文链接:https://www.haomeiwen.com/subject/zljctqtx.html