[Appium] Welcome to Appium v1.21.0 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [debug] [HTTP] Request idempotency key: 30a43637-358c-4d72-8363-cdae2b9e4d58 [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"app":"/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa","platformVersion":"14.5","automationName":"XCUITest","platformName":"iOS","udid":"00008020-0xxxxxxxxxxxx","deviceName":"iPhone"},"capabilities":{"firstMatch":[{"appium:app":"/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testappctions.ipa","appium:automationName":"XCUITest","appium:deviceName":"iPhone","platformName":"ios","appium:platformVersion":"14.5","appium:udid":"00008020-0xxxxxxxxxxxx"}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa","platformVersion":"14.5","automationName":"XCUITest","platformName":"iOS","udid":"00008020-0xxxxxxxxxxxx","deviceName":"iPhone"},null,{"firstMatch":[{"appium:app":"/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa","appium:automationName":"XCUITest","appium:deviceName":"iPhone","platformName":"ios","appium:platformVersion":"14.5","appium:udid":"00008020-0xxxxxxxxxxxx"}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1623918176562 (10:22:56 GMT+0200 (Central European Summer Time)) [Appium] Appium v1.21.0 creating new XCUITestDriver (v3.43.0) session [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "platformName": "ios", [debug] [BaseDriver] "appium:app": "/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa", [debug] [BaseDriver] "appium:automationName": "XCUITest", [debug] [BaseDriver] "appium:deviceName": "iPhone", [debug] [BaseDriver] "appium:platformVersion": "14.5", [debug] [BaseDriver] "appium:udid": "00008020-0xxxxxxxxxxxx" [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [BaseDriver] Session created with session id: fc967e82-8eda-4c0c-ad68-2c55fe850e28 [debug] [XCUITest] Current user: 'dkviksar' [debug] [XCUITest] Available devices: 00008020-0xxxxxxxxxxxx [debug] [XCUITest] Creating iDevice object with udid '00008020-0xxxxxxxxxxxx' [XCUITest] Determining device to run tests on: udid: '00008020-0xxxxxxxxxxxx', real device: true [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1623918177627 (10:22:57 GMT+0200 (Central European Summer Time)) [BaseDriver] Using local app '/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa' [debug] [BaseDriver] Unzipping '/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa' [debug] [BaseDriver] Enforcing UTF-8 encoding on the extracted file names for 'Testapp.ipa' [debug] [BaseDriver] Extracted 243 items from '/Users/dkviksar/IdeaProjects/TestMaven/src/test/Resources/apps/Testapp.ipa' in 1465ms [debug] [BaseDriver] Matched 1 item in the extracted archive. Assuming 'Payload/Testapp.app' is the correct bundle [BaseDriver] Unzipped local app to '/var/folders/k_/xbcp52_960j28t3tl1nqd0n89bndkr/T/2021517-31876-1plbt3p.pir3/Testapp.app' [debug] [BaseDriver] Event 'appConfigured' logged at 1623918179324 (10:22:59 GMT+0200 (Central European Summer Time)) [debug] [XCUITest] Checking whether app '/var/folders/k_/xbcp52_960j28t3tl1nqd0n89bndkr/T/2021517-31876-1plbt3p.pir3/Testapp.app' is actually present on file system [debug] [XCUITest] App is present [debug] [iOS] Getting bundle ID from app '/var/folders/k_/xbcp52_960j28t3tl1nqd0n89bndkr/T/2021517-31876-1plbt3p.pir3/Testapp.app': 'com.lego.dad.dev.Testapp' [debug] [BaseDriver] Event 'resetStarted' logged at 1623918179328 (10:22:59 GMT+0200 (Central European Summer Time)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1623918179328 (10:22:59 GMT+0200 (Central European Summer Time)) [WebDriverAgent] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent' [WebDriverAgent] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [debug] [XCUITest] Crash reports root '/Users/dkviksar/Library/Logs/CrashReporter/MobileDevice/iPhone' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1623918179545 (10:22:59 GMT+0200 (Central European Summer Time)) [XCUITest] Setting up real device [debug] [XCUITest] Verifying application platform [debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"] [debug] [XCUITest] Reset requested. Removing app with id 'com.lego.dad.dev.Testapp' from the device [debug] [XCUITest] Installing '/var/folders/k_/xbcp52_960j28t3tl1nqd0n89bndkr/T/2021517-31876-1plbt3p.pir3/Testapp.app' on device with UUID '00008020-0xxxxxxxxxxxx'... [debug] [WebDriverAgent] Parsed BUILD_DIR configuration value: '/Users/dkviksar/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products' [debug] [WebDriverAgent] Got derived data root: '/Users/dkviksar/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu' [debug] [Support] Traversed 39 directories and 203 files in 17426ms [debug] [XCUITest] Pushed the app files successfully after 17546ms [XCUITest] App installation succeeded after 18502ms [debug] [XCUITest] The app has been installed successfully. [debug] [BaseDriver] Event 'appInstalled' logged at 1623918198382 (10:23:18 GMT+0200 (Central European Summer Time)) [debug] [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [DevCon Factory] Requesting connection for device 00008020-0xxxxxxxxxxxx on local port 8100, device port 8100 [debug] [DevCon Factory] Cached connections count: 0 [DevCon Factory] Successfully requested the connection for 00008020-0xxxxxxxxxxxx:8100 [debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [debug] [WebDriverAgent] WDA is not listening at 'http://127.0.0.1:8100/' [debug] [WebDriverAgent] WDA is currently not running. There is nothing to cache [debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1623918198515 (10:23:18 GMT+0200 (Central European Summer Time)) [WebDriverAgent] Launching WebDriverAgent on the device [WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1610413414000 >= 499162500000) [debug] [WebDriverAgent] Killing running processes 'xcodebuild.*00008020-0xxxxxxxxxxxx' for the device 00008020-0xxxxxxxxxxxx... [debug] [WebDriverAgent] 'pgrep -if xcodebuild.*00008020-0xxxxxxxxxxxx' didn't detect any matching processes. Return code: 1 [debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/dkviksar/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=00008020-0xxxxxxxxxxxx IPHONEOS_DEPLOYMENT_TARGET=14.5 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent' [debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [WebDriverAgent] xcodebuild exited with code '70' and signal 'null' [WebDriverAgent] Launching WebDriverAgent on the device [WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1610413414000 >= 499162500000) [debug] [WebDriverAgent] Killing running processes 'xcodebuild.*00008020-0xxxxxxxxxxxx' for the device 00008020-0xxxxxxxxxxxx... [debug] [WebDriverAgent] 'pgrep -if xcodebuild.*00008020-0xxxxxxxxxxxx' didn't detect any matching processes. Return code: 1 [debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/dkviksar/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu -destination id=00008020-0xxxxxxxxxxxx IPHONEOS_DEPLOYMENT_TARGET=14.5 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent' [debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [debug] [iProxy@00008020:8100] Connection was refused to port 8100 [WD Proxy] socket hang up [WebDriverAgent] xcodebuild exited with code '70' and signal 'null' [debug] [BaseDriver] Event 'wdaStartFailed' logged at 1623918204433 (10:23:24 GMT+0200 (Central European Summer Time)) [debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70 [debug] [XCUITest] xcodebuild error message: [debug] [XCUITest] . 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. [XCUITest] Quitting and uninstalling WebDriverAgent [WebDriverAgent] Shutting down sub-processes [debug] [WebDriverAgent] No WDAs on the device. [XCUITest] {} [DevCon Factory] Releasing connections for 00008020-0xxxxxxxxxxxx device on any port number [DevCon Factory] Found cached connections to release: ["00008020-0xxxxxxxxxxxx:8100"] [DevCon Factory] Releasing the listener for '00008020-0xxxxxxxxxxxx:8100' [debug] [iProxy@00008020:8100] Closing the connection [debug] [DevCon Factory] Cached connections count: 0 [debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on. [iProxy@00008020:8100] The connection has been closed [debug] [BaseDriver] Event 'newSessionStarted' logged at 1623918205111 (10:23:25 GMT+0200 (Central European Summer Time)) [debug] [W3C] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70 [debug] [W3C] xcodebuild error message: [debug] [W3C] . 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. [debug] [W3C] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:544:15) [debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:579:11 [debug] [W3C] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13) [debug] [W3C] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13) [debug] [W3C] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10) [debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:559:7 [HTTP] <-- POST /wd/hub/session 500 28575 ms - 1325 [HTTP]