问题与calabash,模拟器不会出现在mac上

时间:2014-04-25 19:41:46

标签: ios cucumber rubymotion calabash

 - 

 Run {"SDK_VERSION"="6.1", "OS"="ios6", "DEVICE"="iphone",   
 "DEVICE_TARGET"="device_family=iphone",   
 "BUNDLE_ID"="com.mckinsey.internal.Directory_dev",   
 "APP_BUNDLE_PATH"="/Users/ashish/Workspace/office/ks/firm_directory/build/iPhoneSimulator-7.0-Development/Directory.app"}
 cucumber Waiting at most 30 seconds for simulator (CONNECT_TIMEOUT)   
 Retrying at most 2 times (MAX_CONNECT_RETRY) (1.) Start Simulator
    6.1, iphone, for /Users/ashish/Workspace/office/ks/firm_directory/build/iPhoneSimulator-7.0-Development/Directory.app
 Using installed ios-sim at /usr/local/bin/ios-sim sh: line 1:  2683   
 Trace/BPT trap: 5       /usr/local/bin/ios-sim "launch"   
 "/Users/ashish/Workspace/office/ks/firm_directory/build/iPhoneSimulator-7.0-Development/Directory.app"

 "--sdk" "6.1" "--family" "iphone" "--exit" 2&1 Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Ping   
 http://localhost:37265/... Ping http://localhost:37265/... Timed   
 out...



 class or module required for rescue clause (TypeError)
 /Users/ashish/.rvm/gems/ruby-2.1.1/gems/calabash-cucumber-0.9.136/lib/calabash-cucumber/launch/simulator_helper.rb:225:in
 `rescue in ensure_connectivity'
 /Users/ashish/.rvm/gems/ruby-2.1.1/gems/calabash-cucumber-0.9.136/lib/calabash-cucumber/launch/simulator_helper.rb:174:in
 `ensure_connectivity'
 /Users/ashish/.rvm/gems/ruby-2.1.1/gems/calabash-cucumber-0.9.136/lib/calabash-cucumber/launch/simulator_helper.rb:25:in
 `relaunch'
 /Users/ashish/Workspace/office/ks/firm_directory/features/support/launch.rb:78:in
 `relaunch'
 /Users/ashish/Workspace/office/ks/firm_directory/features/support/launch.rb:156:in
 `AfterConfiguration' Using installed ios-sim at /usr/local/bin/ios-sim

我正在尝试运行功能测试,但模拟器没有显示,运行NO_LAUNCH = 1会运行功能。

我在Mavericks上运行Ruby 2.1.1

请帮忙解决这个问题..

1 个答案:

答案 0 :(得分:0)

NO_LAUNCH=1表示您必须自己在模拟器或设备上启动应用程序。

现在我回头看看:

calabash-cucumber-0.9.136

你的宝石已经过时了 - 最新版本是0.9.169。

$ gem install calabash-cucumber

并按照此处的说明更新您的calabash.framework:

https://github.com/calabash/calabash-ios/wiki/B1-Updating-your-Calabash-iOS-version

请务必阅读:

https://github.com/calabash/calabash-ios/wiki/A0-Xcode-51-Support