更新到 Xcode 4.3(删除旧版本的 Xcode)后,我无法安装 autotest-fsevent gem。命令行工具是通过 Preferences > Downloads > Components 选项卡安装的。
osx 10.7.3、rvm 1.10.2、ruby 1.9.3-rc1、捆绑器 1.0.22
$ bundle
Installing autotest-fsevent (0.2.7) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/doc/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
extconf.rb:36:in `<main>': Xcode not found - see README for assistance (RuntimeError)
Gem files will remain installed in /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7 for inspection.
Results logged to /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7/ext/fsevent/gem_make.out
An error occured while installing autotest-fsevent (0.2.7), and Bundler cannot continue.
Make sure that `gem install autotest-fsevent -v '0.2.7'` succeeds before bundling.
自述文件只是表明需要 Xcode。
我似乎选择了正确的 Xcode.app:
$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
其他人有这个问题吗?任何想法如何解决这个问题?