[Appium] Welcome to Appium v2.2.1 (REV cd1d8ec7c0709b78582f8a06e25e360c8f92675c) [Appium] Attempting to load driver uiautomator2... [Appium] Requiring driver at /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-uiautomator2-driver [Appium] Attempting to load driver xcuitest... [Appium] Requiring driver at /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver [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.2.147:4723/ [Appium] http://169.254.29.248:4723/ [Appium] Available drivers: [Appium] - uiautomator2@2.34.0 (automationName 'UiAutomator2') [Appium] - xcuitest@5.8.2 (automationName 'XCUITest') [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. [HTTP] --> GET /status [HTTP] {} [AppiumDriver@4396] Calling AppiumDriver.getStatus() with args: [] [AppiumDriver@4396] Responding to client with driver.getStatus() result: {"ready":true,"message":"The server is ready to accept new connections","build":{"version":"2.2.1","git-sha":"cd1d8ec7c0709b78582f8a06e25e360c8f92675c","built":"2023-11-06 20:08:42 +0530"}} [HTTP] <-- GET /status 200 2 ms - 199 [HTTP]  [HTTP] --> POST /session [HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"ios","appium:automationName":"XCUITest","appium:app":"/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/nightwatch/clearsky-apps/AppCM.ipa","appium:bundleId":"com.jlg.clearsky","appium:newCommandTimeout":0,"appium:udid":"00008120-001155083E32201E","appium:allowProvisioningDeviceRegistration":true}}} [AppiumDriver@4396] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"ios","appium:automationName":"XCUITest","appium:app":"/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/nightwatch/clearsky-apps/AppCM.ipa","appium:bundleId":"com.jlg.clearsky","appium:newCommandTimeout":0,"appium:udid":"00008120-001155083E32201E","appium:allowProvisioningDeviceRegistration":true}}] [AppiumDriver@4396] Event 'newSessionRequested' logged at 1699452553483 (19:39:13 GMT+0530 (India Standard Time)) [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/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver [Appium] Requiring driver at /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver [AppiumDriver@4396] Appium v2.2.1 creating new XCUITestDriver (v5.8.2) session [AppiumDriver@4396] Checking BaseDriver versions for Appium and XCUITestDriver [AppiumDriver@4396] Appium's BaseDriver version is 9.4.1 [AppiumDriver@4396] XCUITestDriver's BaseDriver version is 9.4.1 [XCUITestDriver@3d8e] Creating session with W3C capabilities: { [XCUITestDriver@3d8e] "alwaysMatch": { [XCUITestDriver@3d8e] "platformName": "ios", [XCUITestDriver@3d8e] "appium:automationName": "XCUITest", [XCUITestDriver@3d8e] "appium:app": "/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/nightwatch/clearsky-apps/AppCM.ipa", [XCUITestDriver@3d8e] "appium:bundleId": "com.jlg.clearsky", [XCUITestDriver@3d8e] "appium:newCommandTimeout": 0, [XCUITestDriver@3d8e] "appium:udid": "00008120-001155083E32201E", [XCUITestDriver@3d8e] "appium:allowProvisioningDeviceRegistration": true [XCUITestDriver@3d8e] }, [XCUITestDriver@3d8e] "firstMatch": [ [XCUITestDriver@3d8e] {} [XCUITestDriver@3d8e] ] [XCUITestDriver@3d8e] } [XCUITestDriver@3d8e] 'platformVersion' capability ('undefined') is not a valid version number. Consider fixing it or be ready to experience an inconsistent driver behavior. [XCUITestDriver@3d8e (fdc91c98)] Session created with session id: fdc91c98-4aab-4f81-96a9-91a5785e097f [XCUITest] Current user: 'root' [XCUITestDriver@3d8e (fdc91c98)] Available devices: 00008120-001155083E32201E [XCUITest] Creating iDevice object with udid '00008120-001155083E32201E' [XCUITestDriver@3d8e (fdc91c98)] Determining device to run tests on: udid: '00008120-001155083E32201E', real device: true [XCUITestDriver@3d8e (fdc91c98)] No platformVersion specified. Using device version: '17.1' [XCUITestDriver@3d8e (fdc91c98)] Event 'xcodeDetailsRetrieved' logged at 1699452553568 (19:39:13 GMT+0530 (India Standard Time)) [BaseDriver] Using local app '/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/nightwatch/clearsky-apps/AppCM.ipa' [Support] Found 'unzip' at '/usr/bin/unzip' [XCUITestDriver@3d8e (fdc91c98)] Found 1 bundle in 'AppCM.ipa': Payload/AppCM.iOS.app [XCUITestDriver@3d8e (fdc91c98)] 'Payload/AppCM.iOS.app' is the resulting application bundle selected from '/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/nightwatch/clearsky-apps/AppCM.ipa' [XCUITestDriver@3d8e (fdc91c98)] Event 'appConfigured' logged at 1699452554184 (19:39:14 GMT+0530 (India Standard Time)) [XCUITest] Checking whether app '/tmp/2023108-6316-mu4obv.efkka/AppCM.iOS.app' is actually present on file system [XCUITest] App is present [XCUITestDriver@3d8e (fdc91c98)] Event 'resetStarted' logged at 1699452554184 (19:39:14 GMT+0530 (India Standard Time)) [XCUITest] Reset: running ios real device reset flow [XCUITestDriver@3d8e (fdc91c98)] Event 'resetComplete' logged at 1699452554184 (19:39:14 GMT+0530 (India Standard Time)) [XCUITestDriver@3d8e (fdc91c98)] Using WDA path: '/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@3d8e (fdc91c98)] Using WDA agent: '/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [XCUITest] Crash reports root '/Users/amicustechnology/Library/Logs/CrashReporter/MobileDevice/yashw’s iPhone' does not exist. Got nothing to gather. [XCUITestDriver@3d8e (fdc91c98)] Event 'logCaptureStarted' logged at 1699452554366 (19:39:14 GMT+0530 (India Standard Time)) [XCUITestDriver@3d8e (fdc91c98)] Setting up real device [XCUITest] Verifying application platform [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"] [XCUITestDriver@3d8e (fdc91c98)] App 'com.jlg.clearsky' is already installed [XCUITest] Reset requested. Removing app with id 'com.jlg.clearsky' from the device [XCUITest] Installing '/tmp/2023108-6316-mu4obv.efkka/AppCM.iOS.app' on device with UUID '00008120-001155083E32201E'... [XCUITest] Using 'serial' app deployment strategy. You could change it by providing another value to the 'appInstallStrategy' capability [XCUITestDriver@3d8e (fdc91c98)] Parsed BUILD_DIR configuration value: '/var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-gcdbzabmoasbbhanrmwsosmcqgxh/Build/Products' [XCUITestDriver@3d8e (fdc91c98)] Got derived data root: '/var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-gcdbzabmoasbbhanrmwsosmcqgxh' [XCUITest] Getting bundle ID from app '/tmp/2023108-6316-mu4obv.efkka/AppCM.iOS.app': 'com.jlg.clearsky' [XCUITest] Successfully scanned the tree structure of '/tmp/2023108-6316-mu4obv.efkka/AppCM.iOS.app' [XCUITest] Got 60 folders and 483 files to push [XCUITest] Successfully created the remote folder structure (61 items) [XCUITest] Proceeding to serial files push [XCUITest] Successfully pushed 60 folders and 483 files within 6716ms [XCUITest] A new application installation is going to be performed [XCUITest] App installation succeeded after 8393ms [XCUITest] The app has been installed successfully. [XCUITestDriver@3d8e (fdc91c98)] Event 'appInstalled' logged at 1699452563222 (19:39:23 GMT+0530 (India Standard Time)) [XCUITestDriver@3d8e (fdc91c98)] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [DevCon Factory] Requesting connection for device 00008120-001155083E32201E on local port 8100, device port 8100 [DevCon Factory] Cached connections count: 0 [DevCon Factory] Successfully requested the connection for 00008120-001155083E32201E:8100 [XCUITestDriver@3d8e (fdc91c98)] 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@00008120:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [XCUITestDriver@3d8e (fdc91c98)] WDA is not listening at 'http://127.0.0.1:8100/' [XCUITestDriver@3d8e (fdc91c98)] WDA is currently not running. There is nothing to cache [XCUITestDriver@3d8e (fdc91c98)] Trying to start WebDriverAgent 1 times with 10000ms interval [XCUITestDriver@3d8e (fdc91c98)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [XCUITestDriver@3d8e (fdc91c98)] Event 'wdaStartAttempted' logged at 1699452563288 (19:39:23 GMT+0530 (India Standard Time)) [XCUITestDriver@3d8e (fdc91c98)] Launching WebDriverAgent on the device [XCUITestDriver@3d8e (fdc91c98)] There is no need to perform the project cleanup. A fresh install has been detected [WebDriverAgent] Killing running processes 'xcodebuild.*00008120-001155083E32201E' for the device 00008120-001155083E32201E... [WebDriverAgent] 'pgrep -if xcodebuild.*00008120-001155083E32201E' didn't detect any matching processes. Return code: 1 [XCUITestDriver@3d8e (fdc91c98)] Beginning test with command 'xcodebuild build-for-testing test-without-building -allowProvisioningUpdates -allowProvisioningDeviceRegistration -project /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-gcdbzabmoasbbhanrmwsosmcqgxh -destination id=00008120-001155083E32201E IPHONEOS_DEPLOYMENT_TARGET=17.1 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@3d8e (fdc91c98)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITestDriver@3d8e (fdc91c98)] Waiting up to 60000ms for WebDriverAgent to start [XCUITestDriver@3d8e (fdc91c98)] Matched '/status' to command name 'getStatus' [XCUITestDriver@3d8e (fdc91c98)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@00008120:8100] Connection was refused to port 8100 [XCUITestDriver@3d8e (fdc91c98)] socket hang up [XCUITestDriver@3d8e (fdc91c98)] Matched '/status' to command name 'getStatus' [XCUITestDriver@3d8e (fdc91c98)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@00008120:8100] Connection was refused to port 8100 [XCUITestDriver@3d8e (fdc91c98)] socket hang up [Xcode] xcodebuild exited with code '70' and signal 'null' [XCUITestDriver@3d8e (fdc91c98)] Launching WebDriverAgent on the device [XCUITestDriver@3d8e (fdc91c98)] There is no need to perform the project cleanup. A fresh install has been detected [WebDriverAgent] Killing running processes 'xcodebuild.*00008120-001155083E32201E' for the device 00008120-001155083E32201E... [WebDriverAgent] 'pgrep -if xcodebuild.*00008120-001155083E32201E' didn't detect any matching processes. Return code: 1 [XCUITestDriver@3d8e (fdc91c98)] Beginning test with command 'xcodebuild build-for-testing test-without-building -allowProvisioningUpdates -allowProvisioningDeviceRegistration -project /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /var/root/Library/Developer/Xcode/DerivedData/WebDriverAgent-gcdbzabmoasbbhanrmwsosmcqgxh -destination id=00008120-001155083E32201E IPHONEOS_DEPLOYMENT_TARGET=17.1 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@3d8e (fdc91c98)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITestDriver@3d8e (fdc91c98)] Waiting up to 60000ms for WebDriverAgent to start [XCUITestDriver@3d8e (fdc91c98)] Matched '/status' to command name 'getStatus' [XCUITestDriver@3d8e (fdc91c98)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@00008120:8100] Connection was refused to port 8100 [XCUITestDriver@3d8e (fdc91c98)] socket hang up [XCUITestDriver@3d8e (fdc91c98)] Matched '/status' to command name 'getStatus' [XCUITestDriver@3d8e (fdc91c98)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@00008120:8100] Connection was refused to port 8100 [XCUITestDriver@3d8e (fdc91c98)] socket hang up [XCUITestDriver@3d8e (fdc91c98)] Matched '/status' to command name 'getStatus' [XCUITestDriver@3d8e (fdc91c98)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@00008120:8100] Connection was refused to port 8100 [XCUITestDriver@3d8e (fdc91c98)] socket hang up [Xcode] xcodebuild exited with code '70' and signal 'null' [XCUITestDriver@3d8e (fdc91c98)] Event 'wdaStartFailed' logged at 1699452566658 (19:39:26 GMT+0530 (India Standard Time)) [XCUITestDriver@3d8e (fdc91c98)] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70 [XCUITestDriver@3d8e (fdc91c98)] xcodebuild error message: [XCUITestDriver@3d8e (fdc91c98)] . 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@3d8e (fdc91c98)] Quitting and uninstalling WebDriverAgent [XCUITestDriver@3d8e (fdc91c98)] Shutting down sub-processes [XCUITestDriver@3d8e (fdc91c98)] Matched '/status' to command name 'getStatus' [XCUITestDriver@3d8e (fdc91c98)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [iProxy@00008120:8100] Connection was refused to port 8100 [XCUITestDriver@3d8e (fdc91c98)] socket hang up [XCUITestDriver@3d8e (fdc91c98)] No WDAs on the device. [XCUITestDriver@3d8e (fdc91c98)] {} [DevCon Factory] Releasing connections for 00008120-001155083E32201E device on any port number [DevCon Factory] Found cached connections to release: ["00008120-001155083E32201E:8100"] [DevCon Factory] Releasing the listener for '00008120-001155083E32201E:8100' [iProxy@00008120:8100] Closing the connection [DevCon Factory] Cached connections count: 0 [XCUITestDriver@3d8e (fdc91c98)] Not clearing log files. Use `clearSystemFiles` capability to turn on. [iProxy@00008120:8100] The connection has been closed [AppiumDriver@4396] Event 'newSessionStarted' logged at 1699452566975 (19:39:26 GMT+0530 (India Standard Time)) [AppiumDriver@4396] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70 [AppiumDriver@4396] xcodebuild error message: [AppiumDriver@4396] . 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@4396] at quitAndUninstall (/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/lib/driver.js:794:15) [AppiumDriver@4396] at /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/lib/driver.js:880:13 [AppiumDriver@4396] at wrapped (/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [AppiumDriver@4396] at retry (/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [AppiumDriver@4396] at retryInterval (/Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [AppiumDriver@4396] at /Users/amicustechnology/Documents/GitHub/AppCM/Nightwatch/ClearSkyAutomationTest/node_modules/appium-xcuitest-driver/lib/driver.js:819:7 [HTTP] <-- POST /session 500 13514 ms - 1424 [HTTP]