ruby-on-rails - 更改 Xcode 的事件开发人员路径

标签 ruby-on-rails xcode gcc xcrun

之前有人问过这个问题,但未解决 here

我已经尝试了解决方案 here ,但它没有解决问题。

我收到此错误:

xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use xcode-select to change

活跃的开发者路径应该是 而不是 说“Xcode 2.app”,而是“Xcode.app”。

我的问题是:如何将事件路径更改为“Xcode.app”?

我已经尝试了以下方法:
$> xcode-select -switch /Applications/Xcode.app/Contents/Developer
$> xcode-select -print-path 
/Applications/Xcode.app/Contents/Developer

我尝试重新安装 Xcode,但问题仍然存在。

最佳答案

您是否尝试使用 sudo 命令以 root 身份执行 switch 命令?

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

关于ruby-on-rails - 更改 Xcode 的事件开发人员路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22679984/

相关文章:

c++ - SDL_ttf 框架不会在 xCode 上运行,给出错误链接器命令失败,退出代码为 1

ubuntu - tensorflow 构建失败,gcc 错误 'as'

gcc - 在内联汇编中使用 double 字 (GCC, IA-32)

ruby-on-rails - 如何在 rspec 中测试 ActiveRecords 的集合?

ruby-on-rails - 在 Windows 7 上使用 Ruby on Rails 遇到困难

ruby-on-rails - 使用 first_or_create 时,在 after_create 回调中,模型查询会自动添加额外条件

ruby-on-rails - 虚拟模型和form_for(或formtastic)

ios - didSelectRowAtIndexPath 不起作用,Swift 3

swift - 切换系统声音 - 快速

c - 在 C 中编写方法时遇到问题,包括指针和类型