如何在Xcode中构建Ruby项目?

时间:2023-01-24 18:26:21

I have a question regarding Ruby on Mac. When i bulid the project, there is an error as follows:

我对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 is installed on my computer, which use Mac OS X 10.7.4, and i installed ruby 1.9.3 with rvm and set ruby 1.9.3 as default:

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]

Someone knows the solution to solve this?

有人知道解决这个问题的解决方案吗?

1 个解决方案

#1


0  

You might need to install the command-line tools in Xcode? I think you open Xcode, go to preferences and in there somewhere, you can install command line utilities. You might need to recompile your rvm ruby afterwards.

您可能需要在Xcode中安装命令行工具?我认为你打开Xcode,转到首选项,在那里,你可以安装命令行实用程序。您可能需要在之后重新编译您的rvm ruby​​。

#1


0  

You might need to install the command-line tools in Xcode? I think you open Xcode, go to preferences and in there somewhere, you can install command line utilities. You might need to recompile your rvm ruby afterwards.

您可能需要在Xcode中安装命令行工具?我认为你打开Xcode,转到首选项,在那里,你可以安装命令行实用程序。您可能需要在之后重新编译您的rvm ruby​​。