0

rubymotion プロジェクトで rake を実行しようとすると、次のエラー メッセージが表示されます。

エラー!Xcode 4.x 以降が必要です

しかし、私の Mac には Xcode 4.3.2 がインストールされています。

私に何ができる?

PD: Xcode 4.4.1 をインストールしましたが、エラーは次のとおりです。

  /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36: command not found: /Applications/Xcode 2.app/Contents/Developer/usr/bin/xcodebuild -version
     Build ./build/iPhoneSimulator-5.1-Development
sh: /Applications/Xcode: No such file or directory
sh: /Applications/Xcode: No such file or directory
sh: /Applications/Xcode: No such file or directory
   Compile ./app/app_delegate.rb
sh: /Applications/Xcode: No such file or directory
rake aborted!
Command failed with status (127): [/Applications/Xcode 2.app/Contents/Develop...]
Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)
4

1 に答える 1

3

Perhaps you have an old version of Xcode also installed on your system. From the "Getting Started" page on RubyMotion's web site:

If you happened to have an older version of Xcode installed on your machine before you installed a newer Xcode from the App Store, you may want to type the following command in order to properly set up the default Xcode path.

$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
于 2012-09-05T10:02:40.703 に答える