安装 Ruby 后 MAC OS X 上的活动开发者路径无效 [英] Invalid active developer path on MAC OS X after installing Ruby

查看:24
本文介绍了安装 Ruby 后 MAC OS X 上的活动开发者路径无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

xcrun:错误:无效的活动开发者路径 (/Applications/Xcode.app),缺少 xcrun:/Applications/Xcode.app/usr/bin/xcrun

解决方案有效,但关闭终端并重新打开后再次出现错误它;然后,每次打开新的终端窗口时,我都必须运行相同的命令.

This solution works, but the error occurs again after closing my terminal and reopening it; I then have to run the same commands every time I open a new terminal window.

如何应用这些更改,以便在关闭终端窗口后保存它们?

How can I apply these changes such that they will save after closing the terminal window out?

推荐答案

更新到 OS X El Capitan 后,我开始遇到同样的错误.
就我而言,我所做的只是安装它:

I started getting the same error after updating to OS X El Capitan.
In my case, all I did was to install it:

sudo xcode-select --install

它对我来说很好.

这篇关于安装 Ruby 后 MAC OS X 上的活动开发者路径无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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