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

xcode-select: error: tool 'x

作者: 小福8090 | 来源:发表于2018-11-15 11:37 被阅读9次

    准备Handbrake的环境时,

    ./configure --launch-jobs=$(sysctl -n hw.ncpu) --launch

    运行时,出现了以下提示:

    xcode-select: error: tool'xcodebuild'requires Xcode, but active developer directory'/Library/Developer/CommandLineTools'is acommandline tools instance

    这种情况是xcodebuild的路径不正确。

    localhost:HandBrakePrivate$ xcode-select --print-path/Library/Developer/CommandLineToolslocalhost:DeveloperPrivate$ xcodebuild -showsdksxcode-select: error: tool'xcodebuild'requires Xcode, but active developer directory'/Library/Developer/CommandLineTools'is a command line tools instance

    将路径切换到Xcode的目录下:

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

    相关文章

      网友评论

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

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