I can be able to connect the iphone wirelessly by removing the lighting cable.
but in some cases, if the phone is getting disconnected with appium to re-initiate the session, someone need to connect through usb physically to make the connection. Then only we can be achieve wireless connection, how to avoid this dependency by directly connecting the phone wirelessly
Question:
If anyone has faced this issue — especially on iOS 18.1.1 — could you share what additional setup or configuration helped Appium recognize the device wirelessly?
However, there are some additional steps listed here that might help:
CAVEAT: Although there are posts that talk about running iOS test over wifi, in none of those posts have I seen any reference to running Appium Inspector over wifi. May be a limitation, I don’t know.
Hi wreed,
I have found a way to do the wireless iOS debugging ,
Appium inspector flow in (WIFI) :
Appium Inspector
↓ (HTTP)
Appium Server
↓ (HTTP over WiFi)
URL (WDA on iPhone)
↓ (XCUITest APIs)
iOS UI Elements
Appium Inspector in (USB):
Appium Inspector
↓ (HTTP via localhost)
Appium Server (on Mac)
↓ (WebDriverAgent proxying via USB)
usbmuxd → 127.0.0.1: ⇆ iPhone (WDA running on device)
↓ (XCUITest APIs)
iOS UI Elements
Now , when your device is connected through the USB/Lightning , the connection is established between the Appium and real device through the (`instruments`, `xcrun xctrace`) , but in my case the UDID is not available is the USB when the cable is unpluged . so in order to establish the UDID to appium i connected the mobile initially and then disconnected the cable so the port forwarding will be taken care by the ‘webDriverAgentUrl‘ . There is a direct connection to device with Installed WDA and sends commands Directly
Capabilities :
{