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 :
{
âplatformNameâ: âiOSâ,
âappium:automationNameâ: âXCUITestâ,
âappium:deviceNameâ: ââ,
âappium:platformVersionâ: ââ,
âappium:udidâ: ââ,
âappium:webDriverAgentUrlâ: ââ,
âappium:preventWDAAttachmentsâ: true,
âappium:shouldUseSingletonTestManagerâ: false,
âappium:xcodeOrgIdâ: ââ,
âappium:xcodeSigningIdâ: ââ,
âappium:updatedWDABundleIdâ: âcom.facebook.WebDriverAgentRunnerâ,
âappium:noResetâ: true,
âappium:bundleIdâ: âcom.apple.Preferencesâ
}
Summary
-
Connect once via USB to register UDID, If UDID is present then no worries.
-
Start WDA on the iPhone (ensure itâs reachable via Wi-Fi) and check in Xcode for âconnect via networkâ.
-
Use webDriverAgentUrl in capabilities to connect directly over Wi-Fi/Network.
Hope this might be helpful , Thanks.