appium: Cant run on real iOS, app still terminate and restarts
The problem
When trying run test application on iOS device (Android is working), application starts for while, then terminate and start again.
https://www.youtube.com/watch?v=LKipTZBIr_M
Environment
- Appium version: 1.11.1
- Last Appium version that did not exhibit the issue (if applicable):
- Desktop OS/version used to run Appium: Mac OS 10.14.3
- Node.js version (unless using Appium.app|exe): v10.15.1
- Npm package manager: 6.4.1
- Real device or emulator/simulator: iPad 9.7 with OS 11.3
- Appium CLI or Appium.app|exe: Desktop
- xCode: 10.1
Details
Running simple iOS app from Unity3D on iPad over Appium results into cyclic app restarting on device.
I can see this error in log:
Could not proxy command to remote server. Original error: Error: socket hang up). Retrying...
which looks like in this post https://github.com/appium/appium/issues/12155
or
Error: socket hang up Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
Link to Appium logs
Appium log Testing python script
Code To Reproduce Issue [ Good To Have ]
`#!/usr/bin/python
import unittest from appium import webdriver
desired_caps = {} desired_caps[‘showXcodeLog’] = ‘true’ desired_caps[‘platformName’] = ‘iOS’ desired_caps[‘platformVersion’] = ‘11.3’ desired_caps[‘xcodeOrgId’] = ‘7DC7W55G5S’ desired_caps[‘automationName’] = ‘xcuitest’ desired_caps[‘xcodeSigningId’] = ‘iPhone Developer’ desired_caps[‘bundleId’] = ‘com.bistudio.DebuggerTest’ desired_caps[‘deviceName’] = ‘BIMG_Milan_Malek_iPad9.7’ desired_caps[‘udid’] = ‘auto’
driver = webdriver.Remote(‘http://localhost:4723/wd/hub’, desired_caps) #driver.unlock() #self.driver.unlock()`
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16
Finally I found source of weird behaviour.
Problem is in checked “Connect via network” in xCode device organiser.
xCode Connect via network
After uncheck this options in xCode problem is gone.