更改 Android Studio/IntelliJ 的 xcrun 开发者路径 [英] change xcrun developer path for Android Studio/IntelliJ
问题描述
我正在使用 GIT 并尝试推送我的代码并在使用 终端 时收到以下错误.我不使用 XCode,我使用 Android Studio.
我尝试使用的命令是:
<块引用>git branch 网络
错误:
<块引用>xcrun:错误:无效的活动开发者路径 (/Library/Developer/CommandLineTools),缺少 xcrun 在:/Library/Developer/CommandLineTools/usr/bin/xcrun`
如果有任何帮助,我正在运行 El Capitan Beta 4 更新.
<小时><块引用>更新:这也适用于 IntelliJ 用户和 MacOS卡特琳娜更新
你可以从
这样可以节省时间和内存.
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.
The command I tried using was:
git branch Networking
Error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun`
I am running on El Capitan Beta 4 update if that helps in any way.
Update: This also happens for IntelliJ users, and for MacOS Catalina update
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屋!