Rubymotion,添加界面生成器:运行 来自 gem 的 rake 任务给出 "Don't know how to build task 'ib'"

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

我有一个 Ruby Motion 项目,我想向其中添加 Interface Builder。

我添加了 gem: gem 'ib' 但是当我 运行 bundle exec rake ib 时,我得到 Don't know how to build task 'ib'

有人知道我可能做错了什么吗?这是我的 gem 文件:

source "https://rubygems.org"

gem "rake"
gem "ProMotion", '~> 2.0'
gem "ProMotion-push", git: 'git@github.com:BananaNeil/ProMotion-push.git', :branch => 'actionable-push-notifications'
gem "cocoapods"
gem "motion-cocoapods"
gem 'xcodeproj'


gem "bubble-wrap-http", git: 'git@github.com: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'

确保 require 'ib' 在 Rakefile 中,使用 Bundler 或手动为每个 gem。

如果您使用 Bundler,您可能需要删除 begin/catch 防护,因为它会消除所有与导入相关的错误。