命令行工具bash(git)不起作用-macOS Sierra最终版本候选 [英] Command Line Tools bash (git) not working - macOS Sierra final release candidate

查看:212
本文介绍了命令行工具bash(git)不起作用-macOS Sierra最终版本候选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 OS X 10.11"El Capitan" 升级到了 10.12:"Sierra" ,当我尝试在终端中访问git命令时,我得到了以下错误:

I have just upgraded from OS X 10.11 "El Capitan" to 10.12: "Sierra", and when I try to access git commands inside a terminal, I get the following error:

xcrun:错误:无效的活动开发人员路径

xcrun: error: invalid active developer path

(//Library/Developer/CommandLineTools),缺少xcrun位置:

(/Library/Developer/CommandLineTools), missing xcrun at:

/Library/Developer/CommandLineTools/usr/bin/xcrun

/Library/Developer/CommandLineTools/usr/bin/xcrun

如果有人有解决方案,请帮助我.

Please help me if anyone have solution.

推荐答案

重新安装Xcode开发人员工具

Re-install Xcode developer tools

xcode-select --install

这篇关于命令行工具bash(git)不起作用-macOS Sierra最终版本候选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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