ios - 葫芦无法连接到模拟器

标签 ios cucumber calabash

我正尝试在我的应用程序中运行一些 Calabash UI 测试,但在连接到我的模拟器时遇到了问题。我正在尝试连接查看 calabash-ios 控制台,但遇到以下错误:

 WARNING

Warning Trying to connect to simulator that was not launched by Calabash/instruments.
To fix this you must let Calabash or instruments launch the app.
Query will work, but gestures will not.

我已经运行应用程序查看我的 -cal 目标并成功看到消息 Started LPHTTP server on port 37265。以下是有关 Calabash/我的设置的更多信息:

xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

xcodebuild -version
Xcode 7.0
Build version 7A218

calabash-ios version
0.14.3

server_version
=> {"app_id"=>"com.solstice.discoverfinancialenterprise.mobile", "outcome"=>"SUCCESS", "server_port"=>37265, "version"=>"0.14.3", "app_name"=>"Discover", "system"=>"x86_64", "simulator_device"=>"iPhone", "simulator"=>"", "app_version"=>"1", "short_version_string"=>"6.6.1 UAT", "iphone_app_emulated_on_ipad"=>false, "app_base_sdk"=>"iphonesimulator9.0", "form_factor"=>"iphone 4in", "git"=>{"revision"=>"c2d009b", "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.4"}

抱歉,JSON 未格式化,我的控制台以未格式化的方式输出它。

我使用过几种不同的模拟器,iPhone 6、iOS 9 和 iOS 8.3,以及 iPhone 5s iOS 8.4。有谁知道我需要做些什么才能让它连接到我的模拟器?

最佳答案

+100 包括有关您的环境的所有信息。

请更新到与您的 Xcode 版本兼容的 Calabash 0.16.4。

I'm trying to just connect view the calabash-ios console, but am running into the following error:

你能展示一下你是如何启动控制台的以及你试图运行什么命令吗?

通常,您需要这样的东西:

$ APP=/path/to/Your.app calabash-ios console
> start_test_server_in_background

您必须让 calabash 启动应用程序,否则您将无法执行手势。

APP 和 APP_BUNDLE_PATH 是同义词。

http://calabashapi.xamarin.com/ios/file.ENVIRONMENT_VARIABLES.html#label-APP+and+APP_BUNDLE_PATH

关于ios - 葫芦无法连接到模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33108516/

相关文章:

android - 无法使用 calabash android 安装程序在模拟器/设备上运行 android apk 文件

ios - 以编程方式关注 web View 中的表单 (WKWebView)

ruby-on-rails - cucumber /路轨错误未初始化的常量DatabaseCleaner(NameError)

ruby - cucumber 特征和步骤定义

android - Calabash 在内部是如何工作的?

ios - Xamarin UI 测试 : Calabash not linked

ios - 永久设置 UITableView 内容插入

ios - 您可以在主屏幕快速操作中显示内容吗

ios - 在 prepareForSegue 方法中防止 segue?

java - cucumber /小 cucumber - 将 "When"项放在 "Background"内是否可以接受?