Search code examples
rubyinterface-builderrakerubymotion

Rubymotion, adding interface builder: running a rake task from gem gives "Don't know how to build task 'ib'"


I have a Ruby Motion project, and I want to add Interface Builder to it.

I've added the gem: gem 'ib' But when I run bundle exec rake ib, I get Don't know how to build task 'ib'

Does any one know what I might be doing wrong? here is my gemfile:

source "https://rubygems.org"

gem "rake"
gem "ProMotion", '~> 2.0'
gem "ProMotion-push", git: '[email protected]:BananaNeil/ProMotion-push.git', :branch => 'actionable-push-notifications'
gem "cocoapods"
gem "motion-cocoapods"
gem 'xcodeproj'


gem "bubble-wrap-http", git: '[email protected]:BananaNeil/BubbleWrap-HTTP.git', branch: 'allow_invalid_ssl_certs'
gem "bubble-wrap"
gem "sugarcube" # monkeypatch all the things
gem "motion-yaml"

gem "motion-stump"
gem 'houston'

# Enter debugger with simple syntax
gem 'dbt' #-----> break

# Add pretty print
gem 'motion-pp'

# Handle address book for us
gem 'motion-addressbook'


gem 'ib'

Solution

  • Make sure to require 'ib' inside the Rakefile, either with Bundler or manually for each gem.

    And if you use Bundler, you might need to remove the begin/catch guard, because it will silence all import related errors.