Can only run iOS once or twice before locking up

I have been getting these messages constantly while attempting to run Appium iOS UI Tests locally.

Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.smartsheet.smartsheet","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
...
Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying

I’ve seen these before, and in the past I would restart or reset the simulator and the Appium server might work for a while. Lately however, it might take a dozen tries or more to get it to “work”. A couple mornings ago I spent an hour (also changing ports and fiddling with settings) before I got a single run working.
I’m running the 1.19.1 Appium desktop client (same problem on the 1.20.2 version).

Another thing I’ve discovered is that if I delete the iOS simulator and recreate it, I might get a run or two out of Appium before it stalls out with the message above.

There seems to be a communication problem between the WebDriverAgent and the iOS App. Any ideas what could be going awry here?

Full Log below:

[info] e[35m[Appium]e[39m Welcome to Appium v1.19.1
[info] e[35m[Appium]e[39m Non-default server args:
[info] e[35m[Appium]e[39m   relaxedSecurityEnabled: true
[info] e[35m[Appium]e[39m   allowInsecure: {
[info] e[35m[Appium]e[39m   }
[info] e[35m[Appium]e[39m   denyInsecure: {
[info] e[35m[Appium]e[39m   }
[info] e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:4723[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214692067 (11:18:12 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214693070 (11:18:13 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214694076 (11:18:14 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214695081 (11:18:15 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214696089 (11:18:16 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214697095 (11:18:17 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...
[debug] e[35m[XCUITest]e[39m UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[XCUITest]e[39m     at JWProxy.command (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:275:13)
[debug] e[35m[XCUITest]e[39m     at runMicrotasks (<anonymous>)
[debug] e[35m[XCUITest]e[39m     at processTicksAndRejections (internal/process/task_queues.js:85:5)
[debug] e[35m[XCUITest]e[39m Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100
[warn] e[35m[XCUITest]e[39m Quitting and uninstalling WebDriverAgent
[info] e[35m[WebDriverAgent]e[39m Shutting down sub-processes
[info] e[35m[WebDriverAgent]e[39m Shutting down 'xcodebuild' process (pid '55474')
[info] e[35m[WebDriverAgent]e[39m Sending 'SIGTERM'...
[error] e[35m[WebDriverAgent]e[39m xcodebuild exited with code 'null' and signal 'SIGTERM'
[debug] e[35m[iOSSim]e[39m Building bundle path map
[debug] e[35m[WebDriverAgent]e[39m No WDAs on the device.
[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[error] e[35m[XCUITest]e[39m {}
[info] e[35m[DevCon Factory]e[39m Releasing connections for BDFBE50C-54F1-448E-9FEE-8CFE68131699 device on any port number
[info] e[35m[DevCon Factory]e[39m Found cached connections to release: ["BDFBE50C-54F1-448E-9FEE-8CFE68131699:8100"]
[debug] e[35m[DevCon Factory]e[39m Cached connections count: 0
[debug] e[35m[XCUITest]e[39m Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] e[35m[BaseDriver]e[39m Event 'newSessionStarted' logged at 1617214697119 (11:18:17 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[W3C]e[39m Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[W3C]e[39m     at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:541:15)
[debug] e[35m[W3C]e[39m     at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:602:11
[debug] e[35m[W3C]e[39m     at wrapped (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13)
[debug] e[35m[W3C]e[39m     at retry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13)
[debug] e[35m[W3C]e[39m     at retryInterval (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10)
[debug] e[35m[W3C]e[39m     at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:551:7
[debug] e[35m[W3C]e[39m Destroying socket connection
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100
[debug] e[35m[WebDriverAgent]e[39m WDA is not listening at 'http://127.0.0.1:8100/'
[debug] e[35m[WebDriverAgent]e[39m WDA is currently not running. There is nothing to cache
[debug] e[35m[XCUITest]e[39m Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] e[35m[XCUITest]e[39m These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] e[35m[BaseDriver]e[39m Event 'wdaStartAttempted' logged at 1617214697123 (11:18:17 GMT-0700 (Pacific Daylight Time))
[info] e[35m[WebDriverAgent]e[39m Launching WebDriverAgent on the device
[info] e[35m[WebDriverAgent]e[39m Fetching dependencies
[info] e[35m[WebDriverAgent]e[39m Dependencies up-to-date
[debug] e[35m[WebDriverAgent]e[39m Killing running processes 'xcodebuild.*BDFBE50C-54F1-448E-9FEE-8CFE68131699, BDFBE50C-54F1-448E-9FEE-8CFE68131699.*XCTRunner, xctest.*BDFBE50C-54F1-448E-9FEE-8CFE68131699' for the device BDFBE50C-54F1-448E-9FEE-8CFE68131699...
[debug] e[35m[WebDriverAgent]e[39m 'pgrep -if xcodebuild.*BDFBE50C-54F1-448E-9FEE-8CFE68131699' didn't detect any matching processes. Return code: 1
[debug] e[35m[WebDriverAgent]e[39m 'pgrep -if BDFBE50C-54F1-448E-9FEE-8CFE68131699.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] e[35m[WebDriverAgent]e[39m 'pgrep -if xctest.*BDFBE50C-54F1-448E-9FEE-8CFE68131699' didn't detect any matching processes. Return code: 1
[debug] e[35m[WebDriverAgent]e[39m Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/jgalt/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id=BDFBE50C-54F1-448E-9FEE-8CFE68131699 IPHONEOS_DEPLOYMENT_TARGET=13.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent'
[debug] e[35m[WebDriverAgent]e[39m Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability[debug] e[35m[WebDriverAgent]e[39m Waiting up to 60000ms for WebDriverAgent to start
[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100[debug] e[35m[WebDriverAgent]e[39m Log file for xcodebuild test: /Users/jgalt/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.03.31_11-18-18--0700.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-92B18D90-950A-4C88-B0C6-59B5C765901A/WebDriverAgentRunner-A627B90C-CAF3-4BDD-A73C-BD2B33192B0A/Session-WebDriverAgentRunner-2021-03-31_111820-cDDNko.log[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[info] e[35m[WD Proxy]e[39m connect ECONNREFUSED 127.0.0.1:8100[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] e[35m[WD Proxy]e[39m Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"14.2","version":"13.4"},"ios":{"simulatorVersion":"13.4","ip":"192.168.1.24"},"ready":true,"build":{"upgradedAt":"1617146481741","time":"Mar 31 2021 11:05:17","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] e[35m[WebDriverAgent]e[39m WebDriverAgent information:
[debug] e[35m[WebDriverAgent]e[39m {
[debug] e[35m[WebDriverAgent]e[39m   "message": "WebDriverAgent is ready to accept commands",
[debug] e[35m[WebDriverAgent]e[39m   "state": "success",
[debug] e[35m[WebDriverAgent]e[39m   "os": {
[debug] e[35m[WebDriverAgent]e[39m     "testmanagerdVersion": 28,
[debug] e[35m[WebDriverAgent]e[39m     "name": "iOS",
[debug] e[35m[WebDriverAgent]e[39m     "sdkVersion": "14.2",
[debug] e[35m[WebDriverAgent]e[39m     "version": "13.4"
[debug] e[35m[WebDriverAgent]e[39m   },
[debug] e[35m[WebDriverAgent]e[39m   "ios": {
[debug] e[35m[WebDriverAgent]e[39m     "simulatorVersion": "13.4",
[debug] e[35m[WebDriverAgent]e[39m     "ip": "192.168.1.24"
[debug] e[35m[WebDriverAgent]e[39m   },
[debug] e[35m[WebDriverAgent]e[39m   "ready": true,
[debug] e[35m[WebDriverAgent]e[39m   "build": {
[debug] e[35m[WebDriverAgent]e[39m     "upgradedAt": "1617146481741",
[debug] e[35m[WebDriverAgent]e[39m     "time": "Mar 31 2021 11:05:17",
[debug] e[35m[WebDriverAgent]e[39m     "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] e[35m[WebDriverAgent]e[39m   }
[debug] e[35m[WebDriverAgent]e[39m }
[debug] e[35m[WebDriverAgent]e[39m WebDriverAgent successfully started after 5584ms
[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214702764 (11:18:22 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[HTTP]e[39m e[37m-->e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
[info] e[35m[HTTP]e[39m e[90m{"capabilities":{"firstMatch":[{"platformName":"ios","appium:platformVersion":"13.4","appium:deviceName":"iPhone 11","appium:name":"Grid toolbar - User wants to view the attachment action menu from row toolbar in a sheet -- @1.1 ","appium:build":"ios-ad hoc-1617214709","appium:app":"/Users/jgalt/repos/appium/apps/myapp.app","appium:automationName":"XCUITest","appium:processArguments":{"args":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"]}}]},"desiredCapabilities":{"platformName":"ios","platformVersion":"13.4","deviceName":"iPhone 11","name":"Grid toolbar - User wants to view the attachment action menu from row toolbar in a sheet -- @1.1 ","build":"ios-ad hoc-1617214709","app":"/Users/jgalt/repos/appium/apps/myapp.app","automationName":"XCUITest","processArguments":{"args":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"]}}}e[39m
[debug] e[35m[W3C]e[39m Calling AppiumDriver.createSession() with args: [{"platformName":"ios","platformVersion":"13.4","deviceName":"iPhone 11","name":"Grid toolbar - User wants to view the attachment action menu from row toolbar in a sheet -- @1.1 ","build":"ios-ad hoc-1617214709","app":"/Users/jgalt/repos/appium/apps/myapp.app","automationName":"XCUITest","processArguments":{"args":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"]}},null,{"firstMatch":[{"platformName":"ios","appium:platformVersion":"13.4","appium:deviceName":"iPhone 11","appium:name":"Grid toolbar - User wants to view the attachment action menu from row toolbar in a sheet -- @1.1 ","appium:build":"ios-ad hoc-1617214709","appium:app":"/Users/jgalt/repos/appium/apps/myapp.app","appium:automationName":"XCUITest","appium:processArguments":{"args":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"]}}]}]
[debug] e[35m[BaseDriver]e[39m Event 'newSessionRequested' logged at 1617214714374 (11:18:34 GMT-0700 (Pacific Daylight Time))
[info] e[35m[Appium]e[39m Appium v1.19.1 creating new XCUITestDriver (v3.31.1) session
[info] e[35m[Appium]e[39m Applying relaxed security to 'XCUITestDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] e[35m[BaseDriver]e[39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {
[debug] e[35m[BaseDriver]e[39m   "alwaysMatch": {
[debug] e[35m[BaseDriver]e[39m     "platformName": "ios",
[debug] e[35m[BaseDriver]e[39m     "appium:platformVersion": "13.4",
[debug] e[35m[BaseDriver]e[39m     "appium:deviceName": "iPhone 11",
[debug] e[35m[BaseDriver]e[39m     "appium:name": "Grid toolbar - User wants to view the attachment action menu from row toolbar in a sheet -- @1.1 ",
[debug] e[35m[BaseDriver]e[39m     "appium:build": "ios-ad hoc-1617214709",
[debug] e[35m[BaseDriver]e[39m     "appium:app": "/Users/jgalt/repos/appium/apps/myapp.app",
[debug] e[35m[BaseDriver]e[39m     "appium:automationName": "XCUITest",
[debug] e[35m[BaseDriver]e[39m     "appium:processArguments": {
[debug] e[35m[BaseDriver]e[39m       "args": [
[debug] e[35m[BaseDriver]e[39m         "-LongerToastDurations",
[debug] e[35m[BaseDriver]e[39m         "-DisableMobileViewFirstUseDialog",
[debug] e[35m[BaseDriver]e[39m         "-UITestAccessibilityEnabled"
[debug] e[35m[BaseDriver]e[39m       ]
[debug] e[35m[BaseDriver]e[39m     }
[debug] e[35m[BaseDriver]e[39m   },
[debug] e[35m[BaseDriver]e[39m   "firstMatch": [
[debug] e[35m[BaseDriver]e[39m     {}
[debug] e[35m[BaseDriver]e[39m   ]
[debug] e[35m[BaseDriver]e[39m }
[warn] e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
[warn] e[35m[BaseDriver]e[39m   name
[warn] e[35m[BaseDriver]e[39m   build
[info] e[35m[BaseDriver]e[39m Session created with session id: 75a8fc2e-673e-4bf2-881d-835ab6e0cbd3
[debug] e[35m[XCUITest]e[39m Current user: 'jgalt'
[info] e[35m[XCUITest]e[39m iOS SDK Version set to '14.2'[info] e[35m[iOSSim]e[39m Constructing iOS simulator for Xcode version 12.2 with udid 'BDFBE50C-54F1-448E-9FEE-8CFE68131699'
[info] e[35m[XCUITest]e[39m Determining device to run tests on: udid: 'BDFBE50C-54F1-448E-9FEE-8CFE68131699', real device: false
[debug] e[35m[BaseDriver]e[39m Event 'xcodeDetailsRetrieved' logged at 1617214714581 (11:18:34 GMT-0700 (Pacific Daylight Time))
[info] e[35m[BaseDriver]e[39m Using local app '/Users/jgalt/repos/appium/apps/myapp.app'
[debug] e[35m[BaseDriver]e[39m Event 'appConfigured' logged at 1617214714582 (11:18:34 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Checking whether app '/Users/jgalt/repos/appium/apps/myapp.app' is actually present on file system
[debug] e[35m[XCUITest]e[39m App is present
[debug] e[35m[iOS]e[39m Getting bundle ID from app '/Users/jgalt/repos/appium/apps/myapp.app': 'com.myapp.myapp'
[debug] e[35m[BaseDriver]e[39m Event 'resetStarted' logged at 1617214714582 (11:18:34 GMT-0700 (Pacific Daylight Time))[info] e[35m[XCUITest]e[39m Not scrubbing third party app in anticipation of uninstall
[debug] e[35m[BaseDriver]e[39m Event 'resetComplete' logged at 1617214714812 (11:18:34 GMT-0700 (Pacific Daylight Time))
[info] e[35m[WebDriverAgent]e[39m Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent'
[info] e[35m[WebDriverAgent]e[39m Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] e[35m[IOSSimulatorLog]e[39m Starting log capture for iOS Simulator with udid 'BDFBE50C-54F1-448E-9FEE-8CFE68131699' using simctl[debug] e[35m[BaseDriver]e[39m Event 'logCaptureStarted' logged at 1617214715147 (11:18:35 GMT-0700 (Pacific Daylight Time))
[info] e[35m[XCUITest]e[39m Setting up simulator
[debug] e[35m[iOS]e[39m No reason to set locale
[debug] e[35m[iOS]e[39m No iOS / app preferences to set
[debug] e[35m[iOS]e[39m Setting did not need to be updated
[debug] e[35m[iOSSim]e[39m Setting preferences of BDFBE50C-54F1-448E-9FEE-8CFE68131699 Simulator to {"ConnectHardwareKeyboard":false}
[debug] e[35m[iOSSim]e[39m Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false}
[warn] e[35m[iOSSim]e[39m Simulator preferences file '/Users/jgalt/Library/Preferences/com.apple.iphonesimulator.plist' is not accessible. Ignoring Simulator preferences update.[debug] e[35m[iOSSim]e[39m Got Simulator UI client PID: 30081
[info] e[35m[iOSSim]e[39m Both Simulator with UDID 'BDFBE50C-54F1-448E-9FEE-8CFE68131699' and the UI client are currently running
[debug] e[35m[BaseDriver]e[39m Event 'simStarted' logged at 1617214715293 (11:18:35 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Verifying application platform
[debug] e[35m[XCUITest]e[39m CFBundleSupportedPlatforms: ["iPhoneSimulator"]
[debug] e[35m[simctl]e[39m Error running 'get_app_container': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory[debug] e[35m[XCUITest]e[39m Installing '/Users/jgalt/repos/appium/apps/myapp.app' on Simulator with UUID 'BDFBE50C-54F1-448E-9FEE-8CFE68131699'...[debug] e[35m[XCUITest]e[39m The app has been installed successfully.
[debug] e[35m[BaseDriver]e[39m Event 'appInstalled' logged at 1617214717195 (11:18:37 GMT-0700 (Pacific Daylight Time))[debug] e[35m[WebDriverAgent]e[39m No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[info] e[35m[DevCon Factory]e[39m Requesting connection for device BDFBE50C-54F1-448E-9FEE-8CFE68131699 on local port 8100
[debug] e[35m[DevCon Factory]e[39m Cached connections count: 0
[info] e[35m[DevCon Factory]e[39m Successfully requested the connection for BDFBE50C-54F1-448E-9FEE-8CFE68131699:8100
[debug] e[35m[XCUITest]e[39m Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] e[35m[XCUITest]e[39m Consider setting a unique 'derivedDataPath' capability value for each parallel driver instance to avoid conflicts and speed up the building process[debug] e[35m[WebDriverAgent]e[39m Parsed BUILD_DIR configuration value: '/Users/jgalt/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products'
[debug] e[35m[WebDriverAgent]e[39m Got derived data root: '/Users/jgalt/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp'[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214763776 (11:19:23 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214824791 (11:20:24 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214885804 (11:21:25 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617214946814 (11:22:26 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617215007824 (11:23:27 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617215068840 (11:24:28 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[info] e[35m[WD Proxy]e[39m Error: timeout of 240000ms exceeded
[info] e[35m[WD Proxy]e[39m     at createError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.handleRequestTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/axios/lib/adapters/http.js:264:16)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at RedirectableRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.eventHandlers.<computed> (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
[info] e[35m[WD Proxy]e[39m     at ClientRequest.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket.emitRequestTimeout (_http_client.js:680:40)
[info] e[35m[WD Proxy]e[39m     at Object.onceWrapper (events.js:291:20)
[info] e[35m[WD Proxy]e[39m     at Socket.emit (events.js:203:13)
[info] e[35m[WD Proxy]e[39m     at Socket._onTimeout (net.js:434:8)
[info] e[35m[WD Proxy]e[39m     at listOnTimeout (internal/timers.js:531:17)
[info] e[35m[WD Proxy]e[39m     at processTimers (internal/timers.js:475:7)
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded). Retrying...[debug] e[35m[BaseDriver]e[39m Event 'wdaSessionAttempted' logged at 1617215129852 (11:25:29 GMT-0700 (Pacific Daylight Time))
[debug] e[35m[XCUITest]e[39m Sending createSession command to WDA
[debug] e[35m[WD Proxy]e[39m Matched '/session' to command name 'createSession'
[debug] e[35m[WD Proxy]e[39m Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.myapp.myapp","arguments":["-LongerToastDurations","-DisableMobileViewFirstUseDialog","-UITestAccessibilityEnabled"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}