我正在尝试启动测试服务器,但出现以下错误。请有人给我解决方案。我尝试了 gem 版本的不同组合,但没有运气。感谢对此的快速帮助。
我正在使用类似的命令
DEVICE_TARGET='iPhone 5 (9.2)' calabash-ios console
irb(main):001:0> start_test_server_in_background
ArgumentError:无法从 /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/device.rb 找到具有 UDID 或名称与“iPhone”匹配的设备:126:in
device_with_identifier' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/device.rb:160:in
detect_device' 来自 /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop/core.rb:71:inrun_with_options' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/run_loop-2.1.1/lib/run_loop.rb:134:in
run' 来自 /Users/ test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:718:inblock in new_run_loop' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:716:in
times' 来自 /Users/test/.rvm/gems /ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:716:in relaunchnew_run_loop' from /Users/test/.rvm/gems/ruby-2.0.0-p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/launcher.rb:584:in
' 来自 /Users/test/.rvm/gems/ruby-2.0.0 -p353/gems/calabash-cucumber-0.18.1/lib/calabash-cucumber/core.rb:943:instart_test_server_in_background' from (irb):1 from /Users/test/.rvm/rubies/ruby-2.0.0-p353/bin/irb:12:in
'