2015-10-14 127 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.