运行“cucumber”命令时,iOS Simluator会启动并尝试打开我的应用程序。出现应用程序的启动画面,然后模拟器返回主屏幕。我最终收到一条错误说明:
Time out waiting for UIAutomation run-loop to Start.
我可以通过xCode在iOS模拟器中手动启动-cal应用程序。我可以尝试解决为什么我的应用程序没有使用Calabash在模拟器中运行的任何故障排除步骤?
我的环境
$xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
$xcodebuild -version
Xcode 6.1.1
Build version 6A2008a
$ calabash-ios version
0.12.2
$ calabash.framework/Resources/version
0.12.2
server_version
{
"app_id" => "com.madeupdomain.MyApp-cal",
"outcome" => "SUCCESS",
"server_port" => 37265,
"version" => "0.12.2",
"app_name" => "Unknown",
"system" => "x86_64",
"simulator_device" => "iPhone",
"simulator" => "",
"app_version" => "1.0",
"iphone_app_emulated_on_ipad" => false,
"git" => {
"revision" => "bafa9fd",
"remote_origin" => "git@github.com:calabash/calabash-ios-server.git",
"branch" => "master"
},
"screen_dimensions" => {
"sample" => 1,
"height" => 1136,
"width" => 640,
"scale" => 2
},
"4inch" => true,
"iOS_version" => "8.2"
}
答案 0 :(得分:0)
我多次遇到同样的问题。
首先检查 APP_BUNDLE_PATH 检查 DEVICE_TARGET (如果您的应用不支持该目标)。
答案 1 :(得分:0)
您的应用在发布后是否有隐私提醒?
如果是这样,请参阅此页面上的建议:
您可以使用 exact 命令更新您的问题吗?