更改Android Studio/IntelliJ的xcrun开发人员路径 [英] change xcrun developer path for Android Studio/IntelliJ

查看:156
本文介绍了更改Android Studio/IntelliJ的xcrun开发人员路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 GIT ,并且在使用 终端 时尝试推送我的代码并收到以下错误.我不使用 XCode ,而是使用 Android Studio .

I'm using GIT and am trying to push my code and getting the following error when using the Terminal. I don't use XCode, I'm using Android Studio.

我尝试使用的命令是:

git分支网络

git branch Networking

错误:

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

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

如果这有任何帮助,我正在运行 El Capitan Beta 4 更新.

I am running on El Capitan Beta 4 update if that helps in any way.

更新: IntelliJ 用户和 MacOS也是如此 卡塔琳娜(Catarina)更新

Update: This also happens for IntelliJ users, and for MacOS Catalina update

推荐答案

除了安装xcode,您还可以从此处安装git. >,然后将android studio中的路径更改为/usr/local/git/bin/git,如下图所示.

Instead of installing xcode you can install git from here and change the path in android studio to /usr/local/git/bin/git as shown in the image below.

这样可以节省时间和内存.

This way you save time and memory.

这篇关于更改Android Studio/IntelliJ的xcrun开发人员路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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