Getting an error while executing the test case with real iPhone 6 (12.1.2) device.
See original GitHub issueThe problem
When I am executing the test case on real iPhone device my application is getting opening and then abruptly closed and this process is being repeated several times before throwing an error:
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: 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.
The execution Video
https://drive.google.com/open?id=1azEPtRyMvr277jRM3I7Ei1t3DnzZ7ztg
Environment
- Appium version (or git revision) that exhibits the issue:
- Desktop OS/version used to run Appium: Mac OS Mojave (10.14)
- Node.js version (unless using Appium.app|exe): v11.4.0
- Npm package manager: 6.4.1
- Mobile platform/version under test: iOS
- Real device or emulator/simulator: iPhone 6 - v 12.1.2
- Appium CLI: 1.11.0-beta.3 And Appium.app: 1.10.0 ( I have tried on both)
Details
I have followed steps from https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md in order to setup the execution on real iOS devices. And I have setup it correctly. I verified it by deploying the WebDriverAgent manually from the XCode.
To make sure the successfull installation of provisioning profiles in WebDriverAgent.xcodeproj I have executed below command in the project directory:
xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=badded265a19dea8b1258392e6bf649a1ffc60ec IPHONEOS_DEPLOYMENT_TARGET=12.1.2
Gist of the above command found here: https://gist.github.com/prat3ik/4cc3cffa0871055073f2837185cd6f39
Also to completely verify, I have accessed the WebDriverAgent server status:
Moreover I have tried to restart the device and unistalled the WebDriverAgent from my device manually also did restart my machine.
Link to Appium logs(With Enabled XCode logs)
https://gist.github.com/prat3ik/8d950da78419523be97991220036ccef
Code To Reproduce Issue
import unittest
from appium import webdriver
desired_caps = {}
desired_caps['platformName'] = 'iOS'
desired_caps['platformVersion'] = '12.1'
desired_caps['automationName'] = 'XCuiTest'
desired_caps['deviceName'] = 'iPhone6'
desired_caps['udid'] = 'badded265a19dea8b1258392e6bf649a1ffc60ec'
desired_caps['showXcodeLog'] = 'true'
desired_caps['app'] = 'Settings'
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top GitHub Comments
To me it looks like the client code tries to start multiple sessions on the same device at the same time and nothing of these succeeds.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.