我想在我的應用程序中運行一些葫蘆UI測試,但我遇到了麻煩連接到我的模擬器。我想只要連接視圖葫蘆-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
。這裏有葫蘆/我的設置一些更多的信息:
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"=>"[email protected]: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。有人知道我需要做不同的事情來讓它連接到我的模擬器嗎?
這讓它在服務器上工作!好吧,真棒,所以我在服務器上運行,我只設置DEVICE_TARGET變量,但不是APP變量...儘管我可能已經嘗試設置APP_BUNDLE_PATH,但它不起作用?不知道,那既不是這裏,也不是那裏了。現在嘗試解決讓我的功能腳本啓動並運行。 –
APP和APP_BUNDLE_PATH是同義詞。 – jmoody