The problem
After updating appium (tried both V1.15 and beta V1.16.0) and Xcode (tried both 11.2 and beta 11.3), the Driver gets a busy port problem:
[DEBUG] [TestEventLogger] [35m[iProxy@00008020]e[39m Error: Connection was refused to port 8100
[DEBUG] [TestEventLogger] [35m[iProxy@00008020]e[39m at Usbmux.connect (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-ios-device/lib/usbmux/index.js:207:13)
I’ve noticed this issue was already discussed (https://github.com/appium/appium/issues/13452), but in my case, the issue occurs although the session ends properly:
Session begins with the following configurations:
“noReset”: false,
“fullReset”: false,
“useNewWDA”: “true
and ends with:
driver.quit();
Environment
- Appium version: 1.16.0-beta.1
- Desktop OS/version used to run Appium: macOS 10.14.5
- Mobile platform/version under test: iOS
- Real device or emulator/simulator: real iPhone XR 13.2
- Build using Xcode11.3
Details
How can I make sure deleteSession has been called? Also, I’m not sure this is actually the issue since it also occurred in the first session that I tried, and also after manually cleaning the port.
Issue reproduces constantly (happens 100% of the times).