calabash / run_loop

The bridge between Calabash iOS and Xcode command-line tools like instruments and simctl.
Other
32 stars 41 forks source link

Xcode 12 beta 6 - Could not connect to the DeviceAgent service #758

Open raamojirao opened 3 years ago

raamojirao commented 3 years ago

When I execute calabash automated tests on iOS 14 device, I get the following error

     Could not connect to the DeviceAgent service. 
      device: #<Device: Billons (14.0) e17caXXXXXXXXXXXXXXXXX>
         url: http://<device_ip>:27753/ 
      To diagnose the problem tail the launcher log file: 
      $ tail -1000 -F /Users/XXXX/.calabash/iOSDeviceManager/logs/current.log

Environment Xcode 12.0-beta6 calabash-ios 0.21.10 run_loop 4.5.3 Ruby Version 2.6.4

Could someone help with this issue please

svnm commented 3 years ago

I assume this PR https://github.com/calabash/run_loop/pull/757 will address the issue of DeviceAgent service not working. It is working for me as a temporary workaround

raamojirao commented 3 years ago

@svnm That is nice! Glad to hear that it is working for you. How do I point my local workspace to this run_loop branch and run automated tests

svnm commented 3 years ago

It is a temporary solution to use the WIP branch, so hopefully this will get merged in and a calabash release for Xcode 12 support will come soon.

Change in your Gemfile

gem "run_loop"

to

gem "run_loop", github: "calabash/run_loop", branch: "v-andrem/ios-14-fixes"
jmoody commented 3 years ago

or

gem "run_loop", github: "calabash/run_loop", branch: "xcode_14_support"
raamojirao commented 3 years ago

gem "run_loop", github: "calabash/run_loop", branch: "xcode_14_support" did not work. But gem "run_loop", github: "calabash/run_loop", branch: "v-andrem/ios-14-fixes" worked on real iOS device. Thanks so much!