我试图运行的样本'my_first.feature‘,但我面临一个问题。我正在跟踪这个教程:编码技巧-葫芦-ing-ios-应用程序。
我也尝试了不同的教程,但无法弄清楚为什么我会得到这个错误。我是iOS的新手--应用程序自动化。
我也在其他项目上尝试过这个样例项目,有工作很好,但它不是在我的现场项目工作。对我来说,应用程序启动并消失。
$ APP_BUNDLE_PATH=<snip>/Build/Products/Debug-iphonesimulator/My-cal.app \
DEVICE_TARGET='iPhone 5s - Simulator - iOS 9.0' \
cucumber
Unable to start. Make sure you've set APP_BUNDLE_PATH to a build supported by this simulator version
Calabash::Cucumber::Launcher::StartError:
"Timed out waiting for UIAutomation run-loop Error while writing to fifo. RunLoop::Fifo::NoReaderConfiguredError.
Logfile: /var/folders/l1/2s2v4t051fxggjhtc4v66jwr0000gn/T/run_loop20150921-15728-1m5g7xc/run_loop.out
2015-09-21 14:40:58.923 instruments[16900:141832] Attempting to change eventInstruments Trace Complete (Duration : 1.140556s; Output : /var/folders/l1/2s2v4t051fxggjhtc4v66jwr0000gn/T/run_loop20150921-15728-1m5g7xc/trace.trace)
(Calabash::Cucumber::Launcher::StartError)
/Users/People/.rvm/gems/ruby-2.2.1/gems/calabash-cucumber-0.16.3/lib/calabash-cucumber/launcher.rb:778:in `new_run_loop'
/Users/People/.rvm/gems/ruby-2.2.1/gems/calabash-cucumber-0.16.3/lib/calabash-cucumber/launcher.rb:635:in `relaunch'
/Users/People/Desktop/SVNProject/Emirates_UniversalApp/MyTrips_Redesign/iPHONE/EKiPhone/features/support/01_launch.rb:27:in `Before'我也尝试过设置DEVICE_UDID
发布于 2015-10-08 08:56:35
更新
基于这些评论,问题在于calabash setup在应用程序中有手表扩展;手表扩展是用calabash链接的,而不是应用程序。
在这里跟踪这个问题:Calabash构建/运行Apple应用程序,而不是iPhone应用程序#832
自Xcode 6以来,calabash setup本身就因各种原因而中断。
您将不得不将calabash.framework链接到您的应用程序目标。有几种方法可以做到这一点:
我也尝试过设置DEVICE_UDID
DEVICE_UDID不是卡拉巴斯响应的变量。变量
设备目标=‘iPhone5s-模拟器- iOS 9.0’
这不是Xcode 7的有效模拟器名称。您可以使用以下方法找到有效的模拟器名称:
$ xcrun instruments -s devices
<snip>
iPhone 6 (9.0) [3247EF9D-069D-4233-966F-2B1D4A9042D0]给定该输出,iPhone 6 iOS 9模拟器有2个有效的模拟器iOS值:
"iPhone 6 (9.0)"3247EF9D-069D-4233-966F-2B1D4A9042D0在写入fifo时超时等待UIAutomation运行循环错误。运行环::Fifo::NoReaderConfiguredError。
我最好的猜测是,您需要重新启动计算机;我相信您的CoreSimulator环境可能处于糟糕的状态。如果你最近:
你需要重新启动你的电脑。
calabash-cucumber-0.16.3
你能更新到0.16.4和运行循环1.5.5吗?
如果仍然无法运行,请使用DEBUG=1运行,并根据结果更新您的答案。
https://stackoverflow.com/questions/32694137
复制相似问题