在最后一次Calabash更新后,我无法再运行测试了。我用:
当我尝试运行测试时,我得到:
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
”中我收到同样的错误。
非常感谢任何帮助。
答案 0 :(得分:0)
通过恢复为ruby 2.0.0p481
来修复。