运行“黄瓜”命令时,iOS 模拟器会启动并尝试打开我的应用程序。应用程序的初始屏幕出现,然后模拟器返回主屏幕。我最终收到一条错误消息:
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"
}