# RubyObjC rake failed

**URL:** <https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350>\
**Category:** Ruby\
**Created:** [April 7, 2007, 7:55am UTC](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350 "2007-04-07T07:55:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 7, 2007, 7:55am UTC](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350/1 "2007-04-07T07:55:57Z")

</div>

Hey all !

after downloading and installing “RubyObjC. A Ruby/Objective-C bridge.”  
[http://www.rubyobjc.com/](http://www.rubyobjc.com/)

i did the simplest try-out “myapp” and rake failed, see trace below :

* * *

* * *

## ~/work/RubyObjC/myapp%\> rake --trace (in /Users/yt/work/RubyObjC/myapp) \*\* Invoke default (first\_time) \*\* Invoke app (first\_time) \*\* Invoke executable (first\_time) \*\* Invoke RubyObjC.app/Contents/MacOS (first\_time, not\_needed) \*\* Invoke RubyObjC.app/Contents/MacOS/RubyObjC (first\_time) \*\* Invoke /opt/local/lib/ruby/gems/1.8/gems/RubyObjC-0.3.0/lib/rake/…/rubyobjcapp (first\_time, not\_needed) \*\* Execute RubyObjC.app/Contents/MacOS/RubyObjC rake aborted! wrong number of arguments (3 for 2) /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:725:in `fu_check_options' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:725:in `sh’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh' /opt/local/lib/ruby/gems/1.8/gems/RubyObjC-0.3.0/lib/rake/cocoa.rb:103:i n `initialize’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `call' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `synchronize’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in `invoke\_prerequisites’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in `invoke\_prerequisites’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `synchronize’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in `invoke\_prerequisites’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in `invoke\_prerequisites’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `synchronize’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in `invoke\_prerequisites’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in `invoke\_prerequisites’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `synchronize’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /opt/local/bin/rake:16:in `load’ /opt/local/bin/rake:16 ~/work/RubyObjC/myapp%\>

* * *

i get about the same with one of the samples :

* * *

* * *

## ~/work/RubyObjC/samples/maildemo%\> rake --trace (in /Users/yt/work/RubyObjC/samples/maildemo) rake aborted! Don’t know how to build task ‘default’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:455:in `[]’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each’ /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /opt/local/bin/rake:16:in `load’ /opt/local/bin/rake:16

* * *

as far as i understand this is due to rake not RubyObjC.

i think i should upgrade rake ???

my ruby version is :  
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]

Mac OS X 10.4.9

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 7, 2007, 8:15am UTC](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350/2 "2007-04-07T08:15:58Z")

</div>

Une Bévue wrote:

> as far as i understand this is due to rake not RubyObjC.
> 
> i think i should upgrade rake ???

I think, you should take a look into the documentation:

> **[rubyobjc.com](https://www.rubyobjc.com/)**
>
> Ruby Documentation Project. Documents, links, help, books for the Ruby programming language. Blogtari! powered web site.

rake run seems to do the magic with this thing. I can’t confirm this, as  
I don’t own a Mac.

–  
Phillip “CynicalRyan” Gawlowski  
[http://cynicalryan.110mb.com/](http://cynicalryan.110mb.com/)

Rule of Open-Source Programming #4:

If you don’t work on your project, chances are that no one will.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 7, 2007, 10:41am UTC](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350/3 "2007-04-07T10:41:11Z")

</div>

Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I think, you should take a look into the documentation:  
> [rubyobjc.com](http://www.rubyobjc.com/doc/files/USAGE.html)

yes thanks, i did follow that :

> Rake Tasks
> 
> To build the application, type “rake”; to run it, use “rake run”.

> rake run seems to do the magic with this thing. I can’t confirm this, as  
> I don’t own a Mac.

…

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 8, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/rubyobjc-rake-failed/91350/4 "2007-04-08T21:46:39Z")

</div>

unknown wrote:

> Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I think, you should take a look into the documentation:  
> > [rubyobjc.com](http://www.rubyobjc.com/doc/files/USAGE.html)
> 
> yes thanks, i did follow that :
> 
> > Rake Tasks
> > 
> > To build the application, type “rake”; to run it, use “rake run”.
> 
> > rake run seems to do the magic with this thing. I can’t confirm this, as  
> > I don’t own a Mac.
> 
> …

As a side note, RubyObjc stems from RubyCocoa. RubyCocoa is completely  
free, RubyObjC is somewhat free - no commercial use. I was confused by  
the two at first… RubyObjC just adds a few more tools to the arsenol…  
like rake tasks, etc…
