因此,我曾经让calabash工作得很好,但现在必须进行一些更自动化的UI测试,并试图让它再次工作。我升级了我的版本,似乎Calabash不再启动服务器了!我在控制台中看到以下输出,而不是在启动时看到Starting LPHTTPServer on port...:
2015-10-14 08:18:36.903 DEBUG CalabashServer:222 | Creating the server: <LPHTTPServer: 0x7fa779c51f80>
2015-10-14 08:18:36.920 DEBUG CalabashServer:223 | Calabash iOS server version: CALABASH VERSION: 0.16.4
2015-10-14 08:18:36.920 DEBUG CalabashServer:226 | App Base SDK: iphonesimulator9.0
2015-10-14 08:18:36.921 DEBUG CalabashServer:254 | IPHONE_SIMULATOR_ROOT: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot正因为如此,或者可能是一个单独的问题(我目前有很多问题),它不能触摸或与模拟器交互,甚至无法使用calabash启动我的应用程序。
我运行的是calabash 0.16.4,来自0.14.3,在那里它工作得很好。我试过在iOS 8.3和9的iPhone 6上运行,运行iOS 8.4的iPhone 5s模拟器都不起作用。有什么办法让它重新启动和运行吗?
编辑:关于我的设置的一些信息:
calabash-ios version
0.16.4
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
xcodebuild -version
Xcode 7.0
Build version 7A218
server_version
{
"device_family" => "iPhone Simulator",
"outcome" => "SUCCESS",
"server_port" => 37265,
"simulator_device" => "iPhone",
"simulator" => "CoreSimulator 179 - Device: iPhone 5s - Runtime: iOS 8.4 (12H141) - DeviceType: iPhone 5s",
"app_name" => "Discover",
"app_version" => "1",
"screen_dimensions" => {
"sample" => 1,
"height" => 1136,
"width" => 640,
"scale" => 2
},
"git" => {
"revision" => "3bf68ff",
"remote_origin" => "git@github.com:calabash/calabash-ios-server.git",
"branch" => "master"
},
"device_name" => "iPhone Simulator",
"4inch" => true,
"app_id" => "com.solstice.discoverfinancialenterprise.mobile",
"form_factor" => "iphone 4in",
"system" => "x86_64",
"version" => "0.16.4",
"iOS_version" => "8.4",
"short_version_string" => "6.6.1 UAT",
"ios_version" => "8.4",
"iphone_app_emulated_on_ipad" => false,
"model_identifier" => "iPhone6,1",
"app_base_sdk" => "iphonesimulator9.0"
}发布于 2015-10-14 21:37:07
所以,很明显,根本原因是我的设备目标?从0.14.3开始,Calabash似乎改变了模拟器的命名方式,所以你现在需要使用"iPhone 5s (8.4模拟器)“,而不是使用"iPhone 5s (8.4模拟器)”。
发布于 2015-10-15 14:13:47
我们没有更改模拟器的名称-苹果更改了。
您可以使用以下命令查看可用的模拟器和设备的名称:
$ xcrun instruments -s devices
< snip >
iPhone 6s (9.0) [4A3868FF-E25D-4C92-B898-4BB271F21015]在该输出中,DEVICE_TARGET的有效值为:
DEVICE_TARGET="iPhone 6s (9.0)"
DEVICE_TARGET=4A3868FF-E25D-4C92-B898-4BB271F21015Apple已经更改了Xcode5、6和7中的模拟器的名称。
https://stackoverflow.com/questions/33126551
复制相似问题