问题描述
当我键入git init时,我尝试将其推送到git时遇到了此错误.
我尝试了以下解决方案.
xcode-select —install
sudo xcode-select -switch
sudo xcode-select —install
brew doctor
brew update
brew upgrade
brew cleanup
1)
尝试输入"xcode-select -print-path
",看看您看到的路径是否是您当前Xcode版本所期望的路径.
2)
如果您要访问:
https://developer.apple.com/downloads/
(您需要使用Apple Developer帐户登录)
在那里,您将看到命令行工具"的链接.听起来您需要安装适用于Xcode 7的MacOS 10.11命令行工具... >
I ran into this error trying to push to git, when I typed git init.
I tried the following solutions.
xcode-select —install
sudo xcode-select -switch
sudo xcode-select —install
brew doctor
brew update
brew upgrade
brew cleanup
1)
try typing in "xcode-select -print-path
" and see if the path you see is the path you're expecting for your current Xcode version.
2)
If you go to:
https://developer.apple.com/downloads/
(you'll need to sign in with your Apple Developer account)
Once there, you'll see links for "Command Line Tools". It sounds like you need to install MacOS 10.11 Command Line Tools for Xcode 7.
这篇关于升级到El Capitan后无效的活动开发人员路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!