Not able to interact with the iOS device on xcode 16

Hi i am not able to interact with the iOS device.
The Appium server spitting the below error:

[3b5c6050][XCUITestDriver@2f51] Proxying [GET /source?format=xml&scope=AppiumAUT] to [GET http://127.0.0.1:8100/session/BFBAFD1A-D653-4089-A090-DA1D25D326F6/source?format=xml&scope=AppiumAUT] with no body
[3b5c6050][XCUITestDriver@2f51] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABJIAAAnkCAIAAADZI9xUAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAABJKgAwAEAAAAAQAACeQAAAAAOMw3jQAAAAlwSFlzAAALEwAACxMBAJqcGAAAABxpRE9UAAAAAgAAAAAAAATyAAAAKAAABPIAAATyABgVIUvG+4AAAEAASURBVHgB7L0FlxxH0vdb3V3NNCi02GJZzAy2WLKYmZmZmVkyyczsNTOtvbZ3197d99kH3nO/zf1lRlVWdk/3aCTb++w95/aJkxOVFRkZlVWdXf+JyEjHCYecSBiyPyHrEw67QrouEgoZsoSCSs7excfuFL4hLQubuNiDeXbDIj3+WSXGKet6g+sqo9PT7F++ufA7X6PYYPqyzbMGsKwe2x67rVyL2FNOBnlLzJZSw2uOIxF1y6OuE4mEXMgNx6KRWDSUiEfiMXiYUCruxGMOJZRJhqFUKlyRieTT4VwqRFmZ5RDGqa10q3IhqDofblQVrcmHGle5TWvcRpWRRpUhQ02qIxD1LZsmWzRymzWKSNm+RaJd8xjUuU2qXXNXqGubRPf2ifYt3ftbRKAHWke7t4n1uF9Rp1bh7u2ivdpHe3eI9bzf7dsp1qNdZHDP7KCuSWhA53j/TrGh3VM92jj9OkZh+nZwh3fP9modHtglMbirO6pvZmDn8NAHYsO6RqCRPVzKUT1CY/vGJg/OPNQnOmlQcnTvyLh+8YkDE+P6hicOiE4bnJw0MDa2pzN9SJJy6sDY+N7OnJHxGcNis0fEpvWPwEPTB4aFmdzPWTwuN3NwaN5Id87w8MIx8XnDQ4sedFdMTC0bn1g0KrxiQnzlxMSSMeEN05ILRjmrJkZh...
[3b5c6050][XCUITestDriver@2f51] Got response with status 500: {"value":{"error":"unknown error","message":"-[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x30295d200","traceback":"(\n\t0   CoreFoundation                      0x00000001a436cf0c 9F4D9F69-62D9-3377-AA95-EE0CB9AECC04 + 540428\n\t1   libobjc.A.dylib                     0x000000019c20f2b8 objc_exception_throw + 60\n\t2   CoreFoundation                      0x00000001a447647c 9F4D9F69-62D9-3377-AA95-EE0CB9AECC04 + 1627260\n\t3   CoreFoundation                      0x00000001a4309f94 9F4D9F69-62D9-3377-AA95-EE0CB9AECC04 + 135060\n\t4   CoreFoundation                      0x00000001a43098b0 _CF_forwarding_prep_0 + 96\n\t5   WebDriverAgentLib                   0x0000000103572960 -[XCUIElement(FBUtilities) fb_waitUntilStableWithTimeout:] + 308\n\t6   WebDriverAgentLib                   0x0000000103528b44 +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 644\n\t7   WebDriverAgentLib                   0x0000000103528...
[3b5c6050][W3C] Matched W3C error code 'unknown error' to UnknownError
[3b5c6050][XCUITestDriver@2f51] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x30295d200
    at errorFromW3CJsonCode (/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/protocol/errors.js:1112:25)
    at ProxyRequestError.getActualError (/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/protocol/errors.js:981:14)
    at JWProxy.command (/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:353:19)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at XCUITestDriver.proxyCommand (/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:103:35)
    at XCUITestDriver.mobileGetSource (/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/lib/commands/source.js:50:35)
    at XCUITestDriver.getPageSource (/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/lib/commands/source.js:25:9)
[3b5c6050][HTTP] <-- GET /wd/hub/session/3b5c6050-c844-4660-9aa5-1a5301868205/source 500 527 ms - 1435 
[3b5c6050][XCUITestDriver@2f51] Parsed BUILD_DIR configuration value: '/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/build'
[3b5c6050][XCUITestDriver@2f51] Got derived data root: '/Users/qaleapwork/.appium/node_modules/appium-xcuitest-driver/node_modules'

I am using the below configurations:

iOS: 17.7.1
Mac: 14.6.1
XCode: 16.1
Appium: 2.11.1
WDA -8.7.6
Any input or help is appreciated.

Thank you…!!

[Feat]: ios 18 x Xcode 16 stuff · Issue #20239 · appium/appium · GitHub → you need update your WDA driver.

This issue has been resolved in version 8.9.1 🎉

1 Like

Thank you @Aleksei , the update to WDA 8.9.1 helped to resolve the issue.