我对 Mac 上的 Ruby 有疑问。当我构建项目时,出现如下错误:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- plist (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from .../app.build/Debug-iphonesimulator/iphone.build/Script-2095E433129114D900424894.sh:3
Command /bin/sh failed with exit code 1
Xcode 4.3.3 安装在我的计算机上,它使用 Mac OS X 10.7.4,我用 rvm 安装了 ruby 1.9.3 并将 ruby 1.9.3 设置为默认值:
$ rvm use 1.9.3
Using ../.rvm/gems/ruby-1.9.3-p194
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
有人知道解决这个问题的方法吗?