iOS Safari Automation on Real Device - iPhone 6 plus - getting unknown serve error

Hi All,

I have done iOS Safari Web App Automation in iPhone 6 plus using our organisational framework. When I initiate Batch execution 90% of scenarios are failing with unknown serve error. I really would like to get help from our forum. The same piece of code is working perfectly fine in Android web App.

Below is the Appium log for investigation:

[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“automationName”:“Appium”,“startIWDP”:“true”,“platformVersion”:“10.3.3”,“safariInitialUrl”:“https://www.uathomeserve.com”,“useNewWDA”:“true”,“platformName”:“iOS”,“deviceName”:“c22fc15b679acabd87e7b7f234bac02676e43edf”,“browserName”:“Safari”,“udid”:“c22fc15b679acabd87e7b7f234bac02676e43edf”,“clearSystemFiles”:“true”,“autoWebView”:“true”}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“automationName”:“Appium”,“startIWDP”:“true”,“platformVersion”:“10.3.3”,“safariInitialUrl”:“https://www.uathomeserve.com”,“useNewWDA”:“true”,“platformName”:“iOS”,“deviceName”:“c22fc15b679acabd87e7b7f234bac02676e43edf”,“browserName”:“Safari”,“udid”:“c22fc15b679acabd87e7b7f234bac02676e43edf”,“clearSystemFiles”:“true”,“autoWebView”:“true”},null,null]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1502808696881 (15:51:36 GMT+0100 (BST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.43.1) session
[Appium] Capabilities:
[Appium] automationName: ‘Appium’
[Appium] startIWDP: ‘true’
[Appium] platformVersion: ‘10.3.3’
[Appium] safariInitialUrl: ‘https://www.uathomeserve.com
[Appium] useNewWDA: ‘true’
[Appium] platformName: ‘iOS’
[Appium] deviceName: ‘c22fc15b679acabd87e7b7f234bac02676e43edf’
[Appium] browserName: ‘Safari’
[Appium] udid: ‘c22fc15b679acabd87e7b7f234bac02676e43edf’
[Appium] clearSystemFiles: ‘true’
[Appium] autoWebView: ‘true’
[Appium] newCommandTimeout: 3000
[debug] [XCUITest] XCUITestDriver version: 2.43.1
[BaseDriver] Capability ‘useNewWDA’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘startIWDP’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability ‘clearSystemFiles’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: autoWebView.
[BaseDriver] Session created with session id: dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7
[debug] [XCUITest] Xcode version set to ‘8.3.3’ (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to ‘10.3’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1502808697462 (15:51:37 GMT+0100 (BST))
[debug] [XCUITest] Available devices: c22fc15b679acabd87e7b7f234bac02676e43edf
[debug] [XCUITest] Creating iDevice object with udid ‘c22fc15b679acabd87e7b7f234bac02676e43edf’
[XCUITest] Determining device to run tests on: udid: ‘c22fc15b679acabd87e7b7f234bac02676e43edf’, real device: true
[XCUITest] Safari test requested
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1502808698094 (15:51:38 GMT+0100 (BST))
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1502808698094 (15:51:38 GMT+0100 (BST))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1502808698095 (15:51:38 GMT+0100 (BST))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Starting iOS device log capture with: ‘idevicesyslog’
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1502808698317 (15:51:38 GMT+0100 (BST))
[XCUITest] Setting up real device
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[debug] [XCUITest] Capability ‘useNewWDA’ set to true, so uninstalling WDA before proceeding
[XCUITest] Shutting down sub-processes
[debug] [XCUITest] Removing WDA application from device
[debug] [BaseDriver] Event ‘wdaUninstalled’ logged at 1502808699147 (15:51:39 GMT+0100 (BST))
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1502808699149 (15:51:39 GMT+0100 (BST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] ‘pgrep -nif xcodebuild.*c22fc15b679acabd87e7b7f234bac02676e43edf’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] ‘pgrep -nif iproxy.*c22fc15b679acabd87e7b7f234bac02676e43edf’ didn’t detect any matching processes. Return code: 1
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=c22fc15b679acabd87e7b7f234bac02676e43edf IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[debug] [XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use ‘showXcodeLog’ desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/29874BC7-E5FF-476D-B711-34134054A380/Session-WebDriverAgentRunner-2017-08-15_155149-gWCLDs.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “10.3.3”\n },\n “ios” : {\n “simulatorVersion” : “10.3.3”,\n “ip” : “172.20.39.240”\n },\n “build” : {\n “time” : “Aug 10 2017 17:50:24”\n }\n },\n “sessionId” : “3FEB9C00-CA9C-4CBC-B124-3A61F5549A7B”,\n “status” : 0\n}”
[debug] [XCUITest] WebDriverAgent running on ip ‘172.20.39.240’
[debug] [XCUITest] WebDriverAgent successfully started after 12467ms
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1502808716698 (15:51:56 GMT+0100 (BST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.apple.mobilesafari”,“arguments”:["-u",“https://www.uathomeserve.com”],“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“5D36488A-62CF-4D98-991A-B01E83FEC12E”,“capabilities”:{“device”:“iphone”,“browserName”:“Safari”,“sdkVersion”:“10.3.3”,“CFBundleIdentifier”:“com.apple.mobilesafari”}},“sessionId”:“5D36488A-62CF-4D98-991A-B01E83FEC12E”,“status”:0}
[debug] [BaseDriver] Event ‘wdaSessionStarted’ logged at 1502808721745 (15:52:01 GMT+0100 (BST))
[XCUITest] Setting ‘555’ permissions to ‘/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments’ folder
[debug] [BaseDriver] Event ‘wdaPermsAdjusted’ logged at 1502808721828 (15:52:01 GMT+0100 (BST))
[debug] [BaseDriver] Event ‘wdaStarted’ logged at 1502808721829 (15:52:01 GMT+0100 (BST))
[debug] [XCUITest] Setting initial orientation to ‘PORTRAIT’
[debug] [JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/5D36488A-62CF-4D98-991A-B01E83FEC12E/orientation] with body: {“orientation”:“PORTRAIT”}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:{},“sessionId”:“5D36488A-62CF-4D98-991A-B01E83FEC12E”,“status”:0}
[debug] [BaseDriver] Event ‘orientationSet’ logged at 1502808727342 (15:52:07 GMT+0100 (BST))
[debug] [BaseDriver] Event ‘iwdpStarting’ logged at 1502808727343 (15:52:07 GMT+0100 (BST))
[debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device c22fc15b679acabd87e7b7f234bac02676e43edf
[debug] [BaseDriver] Event ‘iwdpStarted’ logged at 1502808727863 (15:52:07 GMT+0100 (BST))
[debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:27753
[debug] [XCUITest] Waiting for initial webview
[debug] [iOS] Waiting for 3000 ms before navigating to view.
[debug] [iOS] Navigating to most recently opened webview
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: true (expected url: ‘https://www.uathomeserve.com’)
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[debug] [RemoteDebugger] Page element JSON: [{“devtoolsFrontendUrl”:"/devtools/devtools.html?ws=localhost:27753/devtools/page/1",“faviconUrl”:"",“thumbnailUrl”:"/thumb/about:blank",“title”:"",“url”:“about:blank”,“webSocketDebuggerUrl”:“ws://localhost:27753/devtools/page/1”,“appId”:“PID:652”},{“devtoolsFrontendUrl”:"/devtools/devtools.html?ws=localhost:27753/devtools/page/2",“faviconUrl”:"",“thumbnailUrl”:"/thumb/https://www.uathomeserve.com/",“title”:"HomeServe: Home Emergency Cover - Boiler Cover from £5 p/m",“url”:“https://www.uathomeserve.com/",“webSocketDebuggerUrl”:“ws://localhost:27753/devtools/page/2”,“appId”:"PID:650”}]
[debug] [iOS] Retrieving contexts and views
[debug] [iOS] Selecting by url: true (expected url: ‘https://www.uathomeserve.com’)
[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753
[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json
[debug] [RemoteDebugger] Page element JSON: [{“devtoolsFrontendUrl”:"/devtools/devtools.html?ws=localhost:27753/devtools/page/1",“faviconUrl”:"",“thumbnailUrl”:"/thumb/about:blank",“title”:"",“url”:“about:blank”,“webSocketDebuggerUrl”:“ws://localhost:27753/devtools/page/1”,“appId”:“PID:652”},{“devtoolsFrontendUrl”:"/devtools/devtools.html?ws=localhost:27753/devtools/page/2",“faviconUrl”:"",“thumbnailUrl”:"/thumb/https://www.uathomeserve.com/",“title”:"HomeServe: Home Emergency Cover - Boiler Cover from £5 p/m",“url”:“https://www.uathomeserve.com/",“webSocketDebuggerUrl”:“ws://localhost:27753/devtools/page/2”,“appId”:"PID:650”}]
[debug] [iOS] Picking webview ‘WEBVIEW_1’
[debug] [iOS] Attempting to set context to ‘WEBVIEW_1’
[debug] [RemoteDebugger] WebKit debugger web socket connected to url: ws://localhost:27753/devtools/page/1
[debug] [RemoteDebugger] Unregistering from page readiness notifications
[debug] [BaseDriver] Event ‘initialWebviewNavigated’ logged at 1502808730887 (15:52:10 GMT+0100 (BST))
[Appium] New XCUITestDriver session created successfully, session dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1502808730888 (15:52:10 GMT+0100 (BST))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:“Safari”,“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“automationName”:“Appium”,“startIWDP”:“true”,“platformVersion”:“10.3.3”,“safariInitialUrl”:“https://www.uathomeserve.com”,“useNewWDA”:“true”,“platformName”:“iOS”,“deviceName”:“c22fc15b679acabd87e7b7f234bac02676e43edf”,“udid”:“c22fc15b679acabd87e7b7f234bac02676e43edf”,“clearSystemFiles”:“true”,“autoWebView”:“true”,“newCommandTimeout”:3000}
[HTTP] <-- POST /wd/hub/session 200 34007 ms - 615
[HTTP] --> POST /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/timeouts/implicit_wait {“ms”:10000}
[debug] [MJSONWP] Calling AppiumDriver.implicitWait() with args: [10000,“dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7”]
[debug] [XCUITest] Executing command ‘implicitWait’
[debug] [BaseDriver] Set implicit wait to 10000ms
[debug] [MJSONWP] Responding to client with driver.implicitWait() result: null
[HTTP] <-- POST /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/timeouts/implicit_wait 200 2 ms - 76
[HTTP] --> POST /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/url {“url”:“https://www.uathomeserve.com/”}
[debug] [MJSONWP] Calling AppiumDriver.setUrl() with args: [“https://www.uathomeserve.com/","dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7”]
[debug] [XCUITest] Executing command ‘setUrl’
[debug] [iOS] Attempting to set url ‘https://www.uathomeserve.com/
[debug] [RemoteDebugger] Navigating to new URL: https://www.uathomeserve.com/
[debug] [RemoteDebugger] Sending WebKit data: {“method”:“Page.navigate”,“params”:{“objectGroup”:“console”,“includeCommandLineAPI”:true,“doNotPauseOnExceptionsAndMuteConsole”:true,“url”:“https://www.uathomeserve.com/”}}
[debug] [RemoteDebugger] Webkit response timeout: 5000
[debug] [RemoteDebugger] Receiving WebKit data: {“result”:{},“id”:1}
[debug] [RemoteDebugger] Found handler for message ‘1’
[debug] [RemoteDebugger] Received page navigated message: {“result”:{},“id”:1}
[debug] [RemoteDebugger] Waiting for dom…
[debug] [RemoteDebugger] Page loaded, verifying whether ready
[debug] [RemoteDebugger] Not connected to an application. Ignoring page load
[debug] [MJSONWP] Responding to client with driver.setUrl() result: null
[HTTP] <-- POST /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/url 200 1536 ms - 76
[HTTP] --> POST /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/url {“url”:“https://www.uathomeserve.com/”}
[debug] [MJSONWP] Calling AppiumDriver.setUrl() with args: [“https://www.uathomeserve.com/","dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7”]
[debug] [XCUITest] Executing command ‘setUrl’
[debug] [iOS] Attempting to set url ‘https://www.uathomeserve.com/
[debug] [RemoteDebugger] Navigating to new URL: https://www.uathomeserve.com/
[debug] [RemoteDebugger] Sending WebKit data: {“method”:“Page.navigate”,“params”:{“objectGroup”:“console”,“includeCommandLineAPI”:true,“doNotPauseOnExceptionsAndMuteConsole”:true,“url”:“https://www.uathomeserve.com/”}}
[debug] [RemoteDebugger] Webkit response timeout: 5000
[IWDP] [ ‘Page 27753/0 not found’ ]
[IWDP] [ ‘Already sent close_frame’ ]
[debug] [RemoteDebugger] WebKit remote debugger socket disconnected
[MJSONWP] Encountered internal error running command: TimeoutError: operation timed out
at afterTimeout (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/node_modules/bluebird/js/release/timers.js:46:19)
at Timeout.timeoutTimeout [as _onTimeout] (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/node_modules/bluebird/js/release/timers.js:76:13)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
[HTTP] <-- POST /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/url 500 5006 ms - 190
[HTTP] --> GET /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/screenshot {}
[debug] [MJSONWP] Calling AppiumDriver.getScreenshot() with args: [“dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7”]
[debug] [XCUITest] Executing command ‘getScreenshot’
[debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/5D36488A-62CF-4D98-991A-B01E83FEC12E/screenshot] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n “value” : "iVBORw0KGgoAAAANSUhEUgAABGUAAAfRCAYAAACgWTGgAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAAPpAAAAKAAAA+kAAAPoAAul4ZLudewAAEAASURBVHgB\r\n7J133NRE\/se9n+U8ey9n4USxn92zA4pixY69YVdsZzkLnt7ZO2cDBbuIoNgriBR7\r\n74gdO3IqzwMPoP\/NL59ws8zmSXazu9kk++z7j31lN5tMZr7zzmTmk+98Z67ff\/\/d\r\n8MEGMAADMAADMAADMAADMAADMAADMAADMJAuA3Nh8HQNjr2xNwzAAAzAAAzAAAzA\r\nAAzAAAzAAAzAgBhAlMFTCE8pGIABGIABGIABGIABGIABGIABGICBDBhAlMnA6Cii\r\nKKIwAAMwAAMwAAMwAAMwAAMwAAMwAAOIMogyqKEwAAMwAAMwAAMwAAMwAAMwAAMw\r\nAAMZMIAok4HRUUNRQ2EABmAABmAABmAABmAABmAABmAABhBlEGVQQ2EABmAABmAA\r\nBmAABmAABmAABmAABjJgAFEmA6OjhqKGwgAMwAAMwAAMwAAMwAAMwAAMwAAMIMog\r\nyqCGwgAMwAAMwAAMwAAMwAAMwAAMwAAMZMAAokwGRkcNRQ2FARiAARiAARiAARiA\r\nARiAARiAARhAlEGUQQ2FARiAARiAARiAARiAARiAARiokIFhw4aZH374AbtVaDeE\r\nqGIhClEGgGhEYAAGYAAGYAAGYAAGYAAGYAAGKmTg5ptvNoMHDzZff\/01tqvQdggz\r\nc4QZRBngoQGBARiAARiAARiAARiAARiAARiokAGJMvrceuut5ssvv8R+FdoPYWa2\r\nMIMoAzg0HjAAAzAAAzAAAzAAAzAAAzAAAxUyYEUZbQcOHGgmTpyIDSu0IcLM7wZR\r\nBmhoOGAABmA…
[debug] [MJSONWP] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABGUAAAfRCAYAAACgWTGgAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAAPpAAAAKAAAA+kAAAPoAAul4ZLudewAAEAASURBVHgB\r\n7J133NRE/se9n+U8ey9n4USxn92zA4pixY69YVdsZzkLnt7ZO2cDBbuIoNgriBR7\r\n74gdO3IqzwMPoP/NL59ws8zmSXazu9kk++z7j31lN5tMZr7zzmTmk+98Z67ff//d\r\n8MEGMAADMAADMAADMAADMAADMAADMAADMJAuA3Nh8HQNjr2xNwzAAAzAAAzAAAzA\r\nAAzAAAzAAAzAgBhAlMFTCE8pGIABGIABGIABGIABGIABGIABGICBDBhAlMnA6Cii\r\nKKIwAAMwAAMwAAMwAAMwAAMwAAMwAAOIMogyqKEwAAMwAAMwAAMwAAMwAAMwAAMw\r\nAAMZMIAok4HRUUNRQ2EABmAABmAABmAABmAABmAABmAABhBlEGVQQ2EABmAABmAA\r\nBmAABmAABmAABmAABjJgAFEmA6OjhqKGwgAMwAAMwAAMwAAMwAAMwAAMwAAMIMog\r\nyqCGwgAMwAAMwAAMwAAMwAAMwAAMwAAMZMAAokwGRkcNRQ2FARiAARiAARiAARiA\r\nARiAARiAARhAlEGUQQ2FARiAARiAARiAARiAARiAARiokIFhw4aZH374AbtVaDeE\r\nqGIhClEGgGhEYAAGYAAGYAAGYAAGYAAGYAAGKmTg5ptvNoMHDzZff/01tqvQdggz\r\nc4QZRBngoQGBARiAARiAARiAARiAARiAARiokAGJMvrceuut5ssvv8R+FdoPYWa2\r\nMIMoAzg0HjAAAzAAAzAAAzAAAzAAAzAAAxUyYEUZbQcOHGgmTpyIDSu0IcLM7wZR\r\nBmhoOGAABmAABmAABmAABmAABmAABipkwBVl9H3AgAHm/fffx44V2rHZhRlEGYCh\r\n…
[HTTP] <-- GET /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7/screenshot 200 493 ms - 2158362
[HTTP] --> DELETE /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7”]
[debug] [BaseDriver] Event ‘quitSessionRequested’ logged at 1502808738288 (15:52:18 GMT+0100 (BST))
[debug] [JSONWP Proxy] Proxying [DELETE /session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7] to [DELETE http://localhost:8100/session/5D36488A-62CF-4D98-991A-B01E83FEC12E] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “2E14E01E-FFA4-4B58-AADB-86B896F550B6”,\n “status” : 0\n}”
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 34946)
[debug] [XCUITest] iproxy exited with code ‘null’
[XCUITest] Shutting down xcodebuild process (pid 34947)
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
[XCUITest] Setting ‘755’ permissions to ‘/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments’ folder
[XCUITest] Cleaning test logs in ‘/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs’ folder
[debug] [iOS] Clearing log files
[debug] [iOS] Deleting ‘/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs’. Freeing 4.6M.
[debug] [iOS] Finished clearing log files
[debug] [XCUITest] In a web session. Removing remote debugger
[debug] [iOSLog] Stopping iOS log capture
[Appium] Removing session dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7 from our master session list
[debug] [BaseDriver] Event ‘quitSessionFinished’ logged at 1502808738913 (15:52:18 GMT+0100 (BST))
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/dd3c89a6-2d13-4e1e-9efd-7ec5ed83bfe7 200 627 ms - 76

Used Desired Capabilities are

			desiredCapabilities.setCapability("platformName", "iOS");
			desiredCapabilities.setCapability("platformVersion", "10.3.3");
			desiredCapabilities.setCapability("deviceName", deviceName);
			desiredCapabilities.setCapability("udid",deviceName);
			desiredCapabilities.setCapability("automationName", "Appium");
			desiredCapabilities.setCapability("browserName", "Safari");
			desiredCapabilities.setCapability("autoWebView", "true");
			desiredCapabilities.setCapability("startIWDP", "true");
			desiredCapabilities.setCapability("safariInitialUrl", "https://www.uathomeserve.com");
			desiredCapabilities.setCapability("showXcodeLog", "true");
			desiredCapabilities.setCapability("clearSystemFiles", "true");
			desiredCapabilities.setCapability("useNewWDA", "true");

Below is the error message, logged in my framework results:

An unknown server-side error occurred while processing the command. Original error: operation timed out (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 5.01 seconds Build info: version: ‘2.42.2’, revision: ‘6a6995d31c7c56c340d6f45a76976d43506cd6cc’, time: ‘2014-06-03 10:52:47’ System info: host: ‘DTS-Mini.local’, ip: ‘169.254.74.82’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.12.6’, java.version: ‘1.7.0_79’ Session ID: 839d1e77-e285-45f0-bde8-af537e331400 Driver info: io.appium.java_client.ios.IOSDriver Capabilities [{automationName=Appium, platform=MAC, safariInitialUrl=https://www.uathomeserve.com, useNewWDA=true, javascriptEnabled=true, browserName=Safari, networkConnectionEnabled=false, udid=c22fc15b679acabd87e7b7f234bac02676e43edf, locationContextEnabled=false, newCommandTimeout=3000, startIWDP=true, platformVersion=10.3.3, databaseEnabled=false, deviceName=c22fc15b679acabd87e7b7f234bac02676e43edf, platformName=iOS, webStorageEnabled=false, clearSystemFiles=true, takesScreenshot=true, autoWebView=true}]

I am using
Appium 1.6.6 Beta 4
XCode 8.3.3
MAC OS - Sierra 10.12.6

Please somebody help me on this.