archana@githubs-Mac-mini ~ % appium [Appium] Welcome to Appium v2.4.1 (REV 705d2564ddfb9c915ee9425dd9ed408bfac61005) [Appium] The autodetected Appium home path: /Users/archana/.appium [Appium] Attempting to load driver xcuitest... [Appium] Requiring driver at /Users/archana/.appium/node_modules/appium-xcuitest-driver/build/index.js [Appium] XCUITestDriver has been successfully loaded in 0.343s [Appium] Appium REST http interface listener started on http://0.0.0.0:4723 [Appium] You can provide the following URLs in your client code to connect to this server: [Appium] http://127.0.0.1:4723/ (only accessible from the same host) [Appium] http://192.168.1.4:4723/ [Appium] http://169.254.59.155:4723/ [Appium] Available drivers: [Appium] - xcuitest@5.13.1 (automationName 'XCUITest') [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. [HTTP] --> POST /session [HTTP] {"capabilities":{"alwaysMatch":{"appium:platformVersion":"16.0.2","appium:deviceName":"iPhone 8","appium:udid":"6d3183e335c07a0fa022b668da64a3af71b1ba83","appium:bundleId":"com.example.apple-samplecode.UICatalogHello1","appium:platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"appium:platformVersion":"16.0.2","appium:deviceName":"iPhone 8","appium:udid":"6d3183e335c07a0fa022b668da64a3af71b1ba83","appium:bundleId":"com.example.apple-samplecode.UICatalogHello1","appium:platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [AppiumDriver@bbb5] Calling AppiumDriver.createSession() with args: [{"appium:platformVersion":"16.0.2","appium:deviceName":"iPhone 8","appium:udid":"6d3183e335c07a0fa022b668da64a3af71b1ba83","appium:bundleId":"com.example.apple-samplecode.UICatalogHello1","appium:platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"appium:platformVersion":"16.0.2","appium:deviceName":"iPhone 8","appium:udid":"6d3183e335c07a0fa022b668da64a3af71b1ba83","appium:bundleId":"com.example.apple-samplecode.UICatalogHello1","appium:platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [AppiumDriver@bbb5] Event 'newSessionRequested' logged at 1704944684212 (09:14:44 GMT+0530 (India Standard Time)) [BaseDriver] The capabilities ["platformName"] are standard capabilities and do not require "appium:" prefix [Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS' [Appium] The 'xcuitest' driver was installed and matched caps. [Appium] Will require it at /Users/archana/.appium/node_modules/appium-xcuitest-driver [Appium] Requiring driver at /Users/archana/.appium/node_modules/appium-xcuitest-driver/build/index.js [AppiumDriver@bbb5] Appium v2.4.1 creating new XCUITestDriver (v5.13.1) session [AppiumDriver@bbb5] Checking BaseDriver versions for Appium and XCUITestDriver [AppiumDriver@bbb5] Appium's BaseDriver version is 9.5.0 [AppiumDriver@bbb5] XCUITestDriver's BaseDriver version is 9.5.0 [XCUITestDriver@5900] Creating session with W3C capabilities: { [XCUITestDriver@5900] "alwaysMatch": { [XCUITestDriver@5900] "appium:platformVersion": "16.0.2", [XCUITestDriver@5900] "appium:deviceName": "iPhone 8", [XCUITestDriver@5900] "appium:udid": "6d3183e335c07a0fa022b668da64a3af71b1ba83", [XCUITestDriver@5900] "appium:bundleId": "com.example.apple-samplecode.UICatalogHello1", [XCUITestDriver@5900] "platformName": "iOS", [XCUITestDriver@5900] "appium:automationName": "XCUITest", [XCUITestDriver@5900] "appium:newCommandTimeout": 3600, [XCUITestDriver@5900] "appium:connectHardwareKeyboard": true [XCUITestDriver@5900] }, [XCUITestDriver@5900] "firstMatch": [ [XCUITestDriver@5900] {} [XCUITestDriver@5900] ] [XCUITestDriver@5900] } [XCUITestDriver@5900 (1bd63f8f)] Session created with session id: 1bd63f8f-b8ee-4c15-b8fb-9d0f6b0d6d0e [XCUITest] Current user: 'archana' [XCUITestDriver@5900 (1bd63f8f)] Available devices: 6d3183e335c07a0fa022b668da64a3af71b1ba83 [XCUITest] Creating iDevice object with udid '6d3183e335c07a0fa022b668da64a3af71b1ba83' [XCUITestDriver@5900 (1bd63f8f)] Determining device to run tests on: udid: '6d3183e335c07a0fa022b668da64a3af71b1ba83', real device: true [XCUITestDriver@5900 (1bd63f8f)] Normalized platformVersion capability value '16.0.2' to '16.0' [XCUITestDriver@5900 (1bd63f8f)] Event 'xcodeDetailsRetrieved' logged at 1704944684256 (09:14:44 GMT+0530 (India Standard Time)) [XCUITestDriver@5900 (1bd63f8f)] Event 'appConfigured' logged at 1704944684257 (09:14:44 GMT+0530 (India Standard Time)) [XCUITestDriver@5900 (1bd63f8f)] Event 'resetStarted' logged at 1704944684257 (09:14:44 GMT+0530 (India Standard Time)) [XCUITest] Reset: running ios real device reset flow [XCUITestDriver@5900 (1bd63f8f)] Event 'resetComplete' logged at 1704944684257 (09:14:44 GMT+0530 (India Standard Time)) [XCUITestDriver@5900 (1bd63f8f)] Using WDA path: '/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@5900 (1bd63f8f)] Using WDA agent: '/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [XCUITest] Crash reports root '/Users/archana/Library/Logs/CrashReporter/MobileDevice/HPH-0025' does not exist. Got nothing to gather. [XCUITestDriver@5900 (1bd63f8f)] Event 'logCaptureStarted' logged at 1704944684498 (09:14:44 GMT+0530 (India Standard Time)) [XCUITestDriver@5900 (1bd63f8f)] Setting up real device [XCUITestDriver@5900 (1bd63f8f)] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [DevCon Factory] Requesting connection for device 6d3183e335c07a0fa022b668da64a3af71b1ba83 on local port 8100, device port 8100 [DevCon Factory] Cached connections count: 0 [DevCon Factory] Successfully requested the connection for 6d3183e335c07a0fa022b668da64a3af71b1ba83:8100 [XCUITestDriver@5900 (1bd63f8f)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [XCUITestDriver@5900 (1bd63f8f)] WDA is not listening at 'http://127.0.0.1:8100/' [XCUITestDriver@5900 (1bd63f8f)] WDA is currently not running. There is nothing to cache [XCUITestDriver@5900 (1bd63f8f)] Trying to start WebDriverAgent 1 times with 10000ms interval [XCUITestDriver@5900 (1bd63f8f)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [XCUITestDriver@5900 (1bd63f8f)] Event 'wdaStartAttempted' logged at 1704944684686 (09:14:44 GMT+0530 (India Standard Time)) [XCUITestDriver@5900 (1bd63f8f)] Launching WebDriverAgent on the device [XCUITestDriver@5900 (1bd63f8f)] There is no need to perform the project cleanup. A fresh install has been detected [WebDriverAgent] Killing running processes 'xcodebuild.*6d3183e335c07a0fa022b668da64a3af71b1ba83' for the device 6d3183e335c07a0fa022b668da64a3af71b1ba83... [WebDriverAgent] 'pgrep -if xcodebuild.*6d3183e335c07a0fa022b668da64a3af71b1ba83' didn't detect any matching processes. Return code: 1 [XCUITestDriver@5900 (1bd63f8f)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=6d3183e335c07a0fa022b668da64a3af71b1ba83 IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@5900 (1bd63f8f)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITestDriver@5900 (1bd63f8f)] Waiting up to 60000ms for WebDriverAgent to start [XCUITestDriver@5900 (1bd63f8f)] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900 (1bd63f8f)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [XCUITestDriver@5900 (1bd63f8f)] socket hang up [XCUITestDriver@5900 (1bd63f8f)] Parsed BUILD_DIR configuration value: '/Users/archana/Library/Developer/Xcode/DerivedData/WebDriverAgent-eblvpoqggperhaeckofysibhfcro/Build/Products' [XCUITestDriver@5900 (1bd63f8f)] Got derived data root: '/Users/archana/Library/Developer/Xcode/DerivedData/WebDriverAgent-eblvpoqggperhaeckofysibhfcro' [XCUITestDriver@5900 (1bd63f8f)] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900 (1bd63f8f)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [XCUITestDriver@5900 (1bd63f8f)] socket hang up [Xcode] xcodebuild exited with code '70' and signal 'null' [XCUITestDriver@5900 (1bd63f8f)] Launching WebDriverAgent on the device [XCUITestDriver@5900 (1bd63f8f)] There is no need to perform the project cleanup. A fresh install has been detected [WebDriverAgent] Killing running processes 'xcodebuild.*6d3183e335c07a0fa022b668da64a3af71b1ba83' for the device 6d3183e335c07a0fa022b668da64a3af71b1ba83... [WebDriverAgent] 'pgrep -if xcodebuild.*6d3183e335c07a0fa022b668da64a3af71b1ba83' didn't detect any matching processes. Return code: 1 [XCUITestDriver@5900 (1bd63f8f)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/archana/Library/Developer/Xcode/DerivedData/WebDriverAgent-eblvpoqggperhaeckofysibhfcro -destination id=6d3183e335c07a0fa022b668da64a3af71b1ba83 IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@5900 (1bd63f8f)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITestDriver@5900 (1bd63f8f)] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900 (1bd63f8f)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [XCUITestDriver@5900 (1bd63f8f)] socket hang up [XCUITestDriver@5900 (1bd63f8f)] Waiting up to 60000ms for WebDriverAgent to start [XCUITestDriver@5900 (1bd63f8f)] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900 (1bd63f8f)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [XCUITestDriver@5900 (1bd63f8f)] socket hang up [XCUITestDriver@5900 (1bd63f8f)] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900 (1bd63f8f)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [XCUITestDriver@5900 (1bd63f8f)] socket hang up [XCUITestDriver@5900 (1bd63f8f)] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900 (1bd63f8f)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@6d3183e3:8100] Connection was refused to port 8100 [XCUITestDriver@5900 (1bd63f8f)] socket hang up [Xcode] xcodebuild exited with code '70' and signal 'null' [XCUITestDriver@5900 (1bd63f8f)] Event 'wdaStartFailed' logged at 1704944688820 (09:14:48 GMT+0530 (India Standard Time)) [XCUITestDriver@5900 (1bd63f8f)] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. [XCUITestDriver@5900 (1bd63f8f)] Quitting and uninstalling WebDriverAgent [XCUITestDriver@5900 (1bd63f8f)] Shutting down sub-processes [XCUITestDriver@5900 (1bd63f8f)] No WDAs on the device. [XCUITestDriver@5900 (1bd63f8f)] {} [DevCon Factory] Releasing connections for 6d3183e335c07a0fa022b668da64a3af71b1ba83 device on any port number [DevCon Factory] Found cached connections to release: ["6d3183e335c07a0fa022b668da64a3af71b1ba83:8100"] [DevCon Factory] Releasing the listener for '6d3183e335c07a0fa022b668da64a3af71b1ba83:8100' [iProxy@6d3183e3:8100] Closing the connection [DevCon Factory] Cached connections count: 0 [XCUITestDriver@5900 (1bd63f8f)] Not clearing log files. Use `clearSystemFiles` capability to turn on. [iProxy@6d3183e3:8100] The connection has been closed [AppiumDriver@bbb5] Event 'newSessionStarted' logged at 1704944689094 (09:14:49 GMT+0530 (India Standard Time)) [AppiumDriver@bbb5] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. [AppiumDriver@bbb5] at quitAndUninstall (/Users/archana/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:794:15) [AppiumDriver@bbb5] at /Users/archana/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:880:13 [AppiumDriver@bbb5] at wrapped (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [AppiumDriver@bbb5] at retry (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [AppiumDriver@bbb5] at retryInterval (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [AppiumDriver@bbb5] at /Users/archana/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:819:7 [HTTP] <-- POST /session 500 4934 ms - 1818 [HTTP] [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Error: Unable to connect to running WebDriverAgent: 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 [XCUITestDriver@5900] at /Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:393:17 [XCUITestDriver@5900] at processTicksAndRejections (node:internal/process/task_queues:95:5) [XCUITestDriver@5900] at wrapped (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [XCUITestDriver@5900] at retry (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [XCUITestDriver@5900] at retryInterval (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [XCUITestDriver@5900] at XcodeBuild.waitForStart (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:377:7) [XCUITestDriver@5900] at /Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:359:26 [XCUITestDriver@5900] Unable to start WebDriverAgent: Error: We were not able to retrieve the /status response from the WebDriverAgent server after 60000ms timeout.Try to increase the value of 'appium:wdaLaunchTimeout' capability as a possible workaround. [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Matched '/status' to command name 'getStatus' [XCUITestDriver@5900] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@5900] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@5900] Error: Unable to connect to running WebDriverAgent: 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 [XCUITestDriver@5900] at /Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:393:17 [XCUITestDriver@5900] at processTicksAndRejections (node:internal/process/task_queues:95:5) [XCUITestDriver@5900] at wrapped (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [XCUITestDriver@5900] at retry (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [XCUITestDriver@5900] at retryInterval (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [XCUITestDriver@5900] at XcodeBuild.waitForStart (/Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:377:7) [XCUITestDriver@5900] at /Users/archana/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:359:26 [XCUITestDriver@5900] Unable to start WebDriverAgent: Error: We were not able to retrieve the /status response from the WebDriverAgent server after 60000ms timeout.Try to increase the value of 'appium:wdaLaunchTimeout' capability as a possible workaround.