升级到El Capitan后无效的活动开发人员路径错误 [英] Invalid active developer path error after upgrading to El Capitan

查看:40
本文介绍了升级到El Capitan后无效的活动开发人员路径错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我键入git init时,我尝试将其推送到git时遇到了此错误.

xcrun:错误:无效的活动开发人员路径
(/Library/Developer/CommandLineTools),缺少xcrun: /Library/Developer/CommandLineTools/usr/bin/xcrun

我尝试了以下解决方案.

 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.

xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

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后无效的活动开发人员路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆