更新后,Calabash iOS不会运行

时间:2014-10-02 11:16:40

标签: xamarin calabash calabash-ios

在最后一次Calabash更新后,我无法再运行测试了。我用:

  • 蠡黄瓜-0.10.2
  • run_loop-1.0.8
  • 红宝石2.1.0
  • Xcode 6.0.1
  • 和Xamarin Calabash组件(Xamarin Test Cloud Agent 10.1.1)

当我尝试运行测试时,我得到:

undefined method `[]' for nil:NilClass (NoMethodError)
  /Users/user/.rvm/gems/ruby-2.1.0/gems/run_loop-1.0.8/lib/run_loop/sim_control.rb:688:in `enable_accessibility_in_sim_data_dir'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/run_loop-1.0.8/lib/run_loop/sim_control.rb:292:in `block in enable_accessibility_on_sims'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/run_loop-1.0.8/lib/run_loop/sim_control.rb:291:in `map'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/run_loop-1.0.8/lib/run_loop/sim_control.rb:291:in `enable_accessibility_on_sims'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/run_loop-1.0.8/lib/run_loop/core.rb:95:in `run_with_options'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/run_loop-1.0.8/lib/run_loop/core.rb:687:in `run'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/calabash-cucumber-0.10.2/lib/calabash-cucumber/launcher.rb:718:in `block in new_run_loop'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/calabash-cucumber-0.10.2/lib/calabash-cucumber/launcher.rb:716:in `times'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/calabash-cucumber-0.10.2/lib/calabash-cucumber/launcher.rb:716:in `new_run_loop'
  /Users/user/.rvm/gems/ruby-2.1.0/gems/calabash-cucumber-0.10.2/lib/calabash-cucumber/launcher.rb:597:in `relaunch'
  /Users/user/Projects/CalabashTest/features/support/01_launch.rb:27:in `Before'

当我尝试运行calabash-ios sim acc时,在“calabash-ios console”或“start_test_server_in_background”中我收到同样的错误。 非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

通过恢复为ruby 2.0.0p481来修复。