xcrun: error: active developer path (“/Users/Downloads/Xcode.app/Contents/Developer”) does not exist<br >Use sudo xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install
to install the standalone command line developer tools.<br >See man xcode-select
for more details.</br ></br >
xcrun: error: active developer path (“/Users/Downloads/Xcode.app/Contents/Developer”) does not exist<br >Use sudo xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install
to install the standalone command line developer tools.</br >
xcrun: error: active developer path (“/Applications/Xcode 2.app/Contents/Developer”) does not exist, use xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select
)
解决方法
在终端输入下述代码,问题得到解决。
<code>sudo xcode-<span class="hljs-keyword">select</span> -<span class="hljs-keyword">switch</span> /Applications/Xcode.app/Contents/Developer</code>