我有一个Ruby Motion项目,我想在其中添加Interface Builder。
我添加了宝石:
gem 'ib'
但是当我运行bundle exec rake ib
时,我得到Don't know how to build task 'ib'
有谁知道我可能做错了什么?这是我的宝石文件:
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'
答案 0 :(得分:1)
确保在Rakefile中require 'ib'
,使用Bundler或手动为每个gem。
如果您使用Bundler,则可能需要删除begin/catch
防护,因为它会使所有与导入相关的错误无效。