Ios 找不到与';模拟器&x27;(运行时错误)

Ios 找不到与';模拟器&x27;(运行时错误),ios,cucumber,ios-simulator,calabash,Ios,Cucumber,Ios Simulator,Calabash,在ios模拟器(iPhone5 os=8)上通过葫芦运行Cucumber测试时遇到了一个奇怪的错误。我的步骤都已经过去了,但最终还是失败了。我一直在寻找悬而未决的期望,但找不到任何罪魁祸首。该场景在模拟器中正确地完成其步骤,并适当地执行所有命令,但该场景失败。当我用--format pretty运行场景时,我得到了这个 Could not find a simulator that matches 'simulator' (RuntimeError) /Library/Ruby/Gems/2

在ios模拟器(iPhone5 os=8)上通过葫芦运行Cucumber测试时遇到了一个奇怪的错误。我的步骤都已经过去了,但最终还是失败了。我一直在寻找悬而未决的期望,但找不到任何罪魁祸首。该场景在模拟器中正确地完成其步骤,并适当地执行所有命令,但该场景失败。当我用--format pretty运行场景时,我得到了这个

Could not find a simulator that matches 'simulator' (RuntimeError)
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/launcher.rb:267:in `reset_app_sandbox'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/launcher.rb:565:in `relaunch'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/core.rb:838:in `start_test_server_in_background'
~/features/media\u mobile/helpers/ios/support/app\u life\u cycle\u hooks.rb:43:in'Before'

  Could not find a simulator that matches 'simulator' (RuntimeError)
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/launcher.rb:267:in `reset_app_sandbox'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/launcher.rb:565:in `relaunch'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/core.rb:838:in `start_test_server_in_background'
~/features/media\u mobile/helpers/ios/support/app\u life\u cycle\u hooks.rb:43:in'Before'

  Could not find a simulator that matches 'simulator' (RuntimeError)
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/launcher.rb:267:in `reset_app_sandbox'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/launcher.rb:565:in `relaunch'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.11.3/lib/calabash-cucumber/core.rb:838:in `start_test_server_in_background'
失败场景: cucumber-p ios功能/login1.功能:26#场景:登录

1个场景(1个失败) 9个步骤(通过9个步骤)


不确定发生了什么事。非常感谢您的帮助。

请尝试使用此命令指定模拟器

PLATFORM=iphone DEVICE_TARGET='iPhone 5s (7.1 Simulator)' APP_BUNDLE_PATH=users/.../build/Staging-iphonesimulator/your_app-cal.app cucumber -v --format html --out iphone.html $DIR_PATH/features/*.feature

根据需要指定ios版本和应用程序包路径如果使用默认的派生数据文件夹,请跳过应用程序包路径。

虽然您的解决方案不是我所需要的,但它确实为我指明了正确的路径。我被要求修改/完成一位不再在公司工作的前一位员工的代码。当我瞥了一眼cucumber.yml他写的时候,直到你建议指定模拟器,我才真正开始四处闲逛。我尝试了一些不同的方法,但解决问题的是将“RESET_interference_SCENARIOS”(他放在目标定义之后)移动到字符串的开头。测试和场景正在通过。谢谢