2015-10-14 106 views
1

所以我曾经有葫芦工作正常,但现在必须做一些更多的自动UI测试,并试图让它再次工作。我升级了我的版本,似乎Calabash不再启动服务器!而不是看到Starting LPHTTPServer on port...,当我开始,我看到在我的控制台输出如下:Calabash-iOS没有启动服务器

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 

正因为如此,或者一个单独的问题(我目前很多),也不能接触或与互动模拟器,甚至启动我的应用程序与葫芦。

我正在运行葫芦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" => "[email protected]: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" 
} 

回答

1

所以,原来根源在我的设备目标显然是?看起来Calabash已经改变了自0.14.3以来他们命名模拟器的方式,所以现在不需要使用“iPhone 5s(8.4 Simulator)”,而是需要使用“iPhone 5s(8.4)”

0

我们没有更改名称的模拟器 - 苹果做到了。

可以使用查看可用的模拟器和设备的名称:

$ 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-4BB271F21015 

苹果改变在Xcode模拟器的名字5,6和7.