calabash/calabash-ios

DeviceAgent-Runner : Can't launch app on iOS devices

pyu1538 opened this issue · 8 comments

Xcode : 9.2
OSX : 10.13.3
Ruby : 2.4.3p205
Calabash-cucumber : 0.21.4
iOS: 11.0.3, 11.2.6

I touched the DeviceAgent-Runner directly, it just flashed and quit, there is no crash.
The iOSDeviceManager log has error:
idm-2018-02-26-06-38-54.log
2018-02-26 20:10:30.475 ERROR ConsoleWriter:32 | Checking for profile and app entitlement discrepancy

< installed gems are not interesting >

I touched the DeviceAgent-Runner directly, it just flashed and quit, there is no crash.

This is not a use case.

Please show the ruby command that you ran.

2.4.3p205

ruby 2.3.x is required

2018-02-26 20:10:30.475 ERROR ConsoleWriter:32 | Checking for profile and app entitlement discrepancy

This is probably not an error - it is just a log message.

@jmoody
lmxmn107:ipa peng.yu$ which ruby
/Users/peng.yu/.rbenv/shims/ruby

@jmoody

Feature: Running normal call test
As an RCRTC user
I want to make/end call
So I can verify VoIP function

Scenario: Make a production call to auto play number # features/normal_call.feature:6

Could not connect to the DeviceAgent service.

device: #<Device: iPhone Larry (11.0.3) c2c5557cc36292df1359b322b67ea0c34488ad61>
url: http://10.32.60.199:27753/

To diagnose the problem tail the launcher log file:

$ tail -1000 -F /Users/peng.yu/.calabash/iOSDeviceManager/logs/current.log

(RuntimeError)
./features/support/01_launch.rb:27:in `Before'
Given I have a phone that installed RCRTC Swift Demo # features/step_definitions/custom_steps.rb:1
Then I login production account:+16507419631 ext:10081 with password:Test# # features/step_definitions/custom_steps.rb:5
Then I make a call to +14755292180 # features/step_definitions/custom_steps.rb:25
Then I set speaker # features/step_definitions/custom_steps.rb:29
Then I keep the call for 20seconds # features/step_definitions/custom_steps.rb:33
Then I can hear the voice # features/step_definitions/custom_steps.rb:41
Then I end call: +14755292180 # features/step_definitions/custom_steps.rb:37
Then I check the result # features/step_definitions/custom_steps.rb:44

Failing Scenarios:
cucumber features/normal_call.feature:6 # Scenario: Make a production call to auto play number

If i launch my app manually and delete calashbash Launcher, i can execute my test cases.

If i launch my app manually and delete calashbash Launcher, i can execute my test cases.

I am sorry, I don't understand what you mean. What is the Calabash Launcher?

@jmoody
After i delete this file, i can run my test cases. But i launch my app by other tool, "Calabash::Cucumber::Launcher" can't work.

01_launch.rb.txt

I am afraid I still do not understand your problem.

Can you post an example somewhere with steps to reproduce.

@jmoody Maybe the title is not exact. Need not special step, just write one step to relaunch the app, it can't work in my environment. I relaunch app by ios-deploy now.