[info] [HTTP] Waiting until the server is closed [info] [HTTP] Received server close event [info] [Appium] Welcome to Appium v1.19.1 [info] [Appium] Non-default server args: [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"automationName":"XCUITest","bundleID":"com.gcc1.WebDriverAgentRunner","deviceName":"iPhone","platformName":"iOS","platformVersion":"14.4.2","startIWDP":true,"udid":"a3f3135973157edaf0d74eafbf72bffb54a35f1c","xcodeSigningId":"iPhone Developer","newCommandTimeout":0,"connectHardwareKeyboard":true}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"automationName":"XCUITest","bundleID":"com.gcc1.WebDriverAgentRunner","deviceName":"iPhone","platformName":"iOS","platformVersion":"14.4.2","startIWDP":true,"udid":"a3f3135973157edaf0d74eafbf72bffb54a35f1c","xcodeSigningId":"iPhone Developer","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1622804088417 (16:24:48 GMT+0530 (India Standard Time)) [info] [Appium] Appium v1.19.1 creating new XCUITestDriver (v3.31.1) session [info] [Appium] Applying relaxed security to 'XCUITestDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "automationName": "XCUITest", [debug] [BaseDriver] "bundleID": "com.gcc1.WebDriverAgentRunner", [debug] [BaseDriver] "deviceName": "iPhone", [debug] [BaseDriver] "platformName": "iOS", [debug] [BaseDriver] "platformVersion": "14.4.2", [debug] [BaseDriver] "startIWDP": true, [debug] [BaseDriver] "udid": "a3f3135973157edaf0d74eafbf72bffb54a35f1c", [debug] [BaseDriver] "xcodeSigningId": "iPhone Developer", [debug] [BaseDriver] "newCommandTimeout": 0, [debug] [BaseDriver] "connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] bundleID [info] [XCUITest] The desired capabilities include neither an app nor a bundleId. WebDriverAgent will be started without the default app [info] [BaseDriver] Session created with session id: 59791a2a-3421-467e-8a40-94f64682b4dd[debug] [XCUITest] Current user: 'delcy.gandhi' [debug] [XCUITest] Available devices: a3f3135973157edaf0d74eafbf72bffb54a35f1c [debug] [XCUITest] Creating iDevice object with udid 'a3f3135973157edaf0d74eafbf72bffb54a35f1c' [info] [XCUITest] Determining device to run tests on: udid: 'a3f3135973157edaf0d74eafbf72bffb54a35f1c', real device: true [info] [XCUITest] Normalized platformVersion capability value '14.4.2' to '14.4' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1622804088446 (16:24:48 GMT+0530 (India Standard Time)) [debug] [BaseDriver] Event 'appConfigured' logged at 1622804088446 (16:24:48 GMT+0530 (India Standard Time)) [debug] [BaseDriver] Event 'resetStarted' logged at 1622804088446 (16:24:48 GMT+0530 (India Standard Time)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1622804088447 (16:24:48 GMT+0530 (India Standard Time)) [info] [WebDriverAgent] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent' [info] [WebDriverAgent] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [debug] [XCUITest] Crash reports root '/Users/delcy.gandhi/Library/Logs/CrashReporter/MobileDevice/iPhone' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1622804088645 (16:24:48 GMT+0530 (India Standard Time)) [info] [XCUITest] Setting up real device[debug] [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [info] [DevCon Factory] Requesting connection for device a3f3135973157edaf0d74eafbf72bffb54a35f1c on local port 8100, device port 8100 [debug] [DevCon Factory] Cached connections count: 0 [info] [DevCon Factory] Successfully requested the connection for a3f3135973157edaf0d74eafbf72bffb54a35f1c:8100[debug] [WebDriverAgent] Parsed BUILD_DIR configuration value: '/Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products' [debug] [WebDriverAgent] Got derived data root: '/Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp' [debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp' [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@a3f31359:8100] Connection was refused to port 8100 [info] [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 1622804091768 (16:24:51 GMT+0530 (India Standard Time)) [info] [WebDriverAgent] Launching WebDriverAgent on the device [info] [WebDriverAgent] Fetching dependencies [info] [WebDriverAgent] Dependencies up-to-date [debug] [WebDriverAgent] Killing running processes 'xcodebuild.*a3f3135973157edaf0d74eafbf72bffb54a35f1c' for the device a3f3135973157edaf0d74eafbf72bffb54a35f1c... [debug] [WebDriverAgent] 'pgrep -if xcodebuild.*a3f3135973157edaf0d74eafbf72bffb54a35f1c' didn't detect any matching processes. Return code: 1 [debug] [WebDriverAgent] 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/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id=a3f3135973157edaf0d74eafbf72bffb54a35f1c IPHONEOS_DEPLOYMENT_TARGET=14.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] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100[error] [Xcode] 2021-06-04 16:24:56.844 xcodebuild[6652:88198] iPhoneConnect: 📱 installApplicationBundleAtPath:withOptions:andError:withCallback: failed with { [error] [Xcode] NSLocalizedDescription = "Unable to install \"WebDriverAgentRunner-Runner\""; [error] [Xcode] NSUnderlyingError = "Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 \"An unknown error has occurred.\" UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x000000011c7093b8 DTDKCreateNSErrorFromAMDErrorCode + 220\n\t1 DTDeviceKitBase 0x000000011c747ae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155\n\t2 DVTFoundation 0x000000010e6f813c DVTInvokeWithStrongOwnership + 71\n\t3 DTDeviceKitBase 0x000000011c747822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440\n\t4 IDEiOSSupportCore 0x000000011c318ba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534\n\t5 DVTFoundation 0x000000010e82ac3d __DVT_CALLING_CLIENT_BLOCK__ + 7\n\t6 DVTFoundation 0x000000010e82c867 __DVTDispatchAsync_block_invoke + 1191\n\t7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12\n\t8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8\n\t9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606\n\t10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366\n\t11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811\n\t12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314\n\t13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15\n), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}"; [error] [Xcode] } [error] [Xcode] [error] [Xcode] 2021-06-04 16:24:57.076 xcodebuild[6652:88195] iPhoneConnect: 📱 failed to install /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app - error Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "Unable to install "WebDriverAgentRunner-Runner"" UserInfo={NSLocalizedDescription=Unable to install "WebDriverAgentRunner-Runner", NSUnderlyingError=0x7ff48f0d0460 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "An unknown error has occurred." UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=( [error] [Xcode] 0 DTDeviceKitBase 0x000000011c7093b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [error] [Xcode] 1 DTDeviceKitBase 0x000000011c747ae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 [error] [Xcode] 2 DVTFoundation 0x000000010e6f813c DVTInvokeWithStrongOwnership + 71 [error] [Xcode] 3 DTDeviceKitBase 0x000000011c747822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440 [error] [Xcode] 4 IDEiOSSupportCore 0x000000011c318ba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534 [error] [Xcode] 5 DVTFoundation 0x000000010e82ac3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [error] [Xcode] 6 DVTFoundation 0x000000010e82c867 __DVTDispatchAsync_block_invoke + 1191 [error] [Xcode] 7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [error] [Xcode] 8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [error] [Xcode] 9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [error] [Xcode] 10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [error] [Xcode] 11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [error] [Xcode] 12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [error] [Xcode] 13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [error] [Xcode] ), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}}} [error] [Xcode] [error] [Xcode] [error] [Xcode] [error] [Xcode] *** If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-53-+0530.xcresult [error] [Xcode] [error] [Xcode] [error] [Xcode] 2021-06-04 16:24:57.084 xcodebuild[6652:88130] [MT] IDETestOperationsObserverDebug: 2.552 elapsed -- Testing started completed. [error] [Xcode] 2021-06-04 16:24:57.084 xcodebuild[6652:88130] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start [error] [Xcode] 2021-06-04 16:24:57.084 xcodebuild[6652:88130] [MT] IDETestOperationsObserverDebug: 2.552 sec, +2.552 sec -- end [error] [Xcode] [error] [Xcode] [error] [Xcode] Test session results, code coverage, and logs: [error] [Xcode] /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-53-+0530.xcresult [error] [Xcode] [error] [Xcode] [error] [Xcode] Testing failed: [error] [Xcode] WebDriverAgentRunner: [error] [Xcode] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-53-+0530.xcresult. (Underlying Error: Unable to install "WebDriverAgentRunner-Runner". (Underlying Error: An unknown error has occurred.))) [error] [Xcode] [error] [Xcode] ** TEST EXECUTE FAILED ** [error] [Xcode] [error] [Xcode] [error] [Xcode] Testing started [error] [Xcode] [error] [WebDriverAgent] xcodebuild exited with code '65' and signal 'null' [info] [WebDriverAgent] Launching WebDriverAgent on the device [info] [WebDriverAgent] Fetching dependencies [info] [WebDriverAgent] Dependencies up-to-date [debug] [WebDriverAgent] Killing running processes 'xcodebuild.*a3f3135973157edaf0d74eafbf72bffb54a35f1c' for the device a3f3135973157edaf0d74eafbf72bffb54a35f1c...[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*a3f3135973157edaf0d74eafbf72bffb54a35f1c' didn't detect any matching processes. Return code: 1 [debug] [WebDriverAgent] 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/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id=a3f3135973157edaf0d74eafbf72bffb54a35f1c IPHONEOS_DEPLOYMENT_TARGET=14.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] [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@a3f31359:8100] Connection was refused to port 8100[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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [WD Proxy] socket hang up[error] [Xcode] 2021-06-04 16:25:04.509 xcodebuild[6667:88535] DTDeviceKit: Failed to mount DDI from '', error=-402653035: Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x7fea33ddec80 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653035 "The device rejected the pairing attempt." UserInfo={MobileDeviceErrorCode=(0xE8000095), com.apple.dtdevicekit.stacktrace=( [error] [Xcode] 0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [error] [Xcode] 1 DTDeviceKitBase 0x000000011baba674 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1024 [error] [Xcode] 2 DTDeviceKitBase 0x000000011babb08b __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 609 [error] [Xcode] 3 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [error] [Xcode] 4 libdispatch.dylib 0x00007fff203735ae _dispatch_lane_barrier_sync_invoke_and_complete + 60 [error] [Xcode] 5 DTDeviceKitBase 0x000000011babadca -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 185 [error] [Xcode] 6 IDEiOSSupportCore 0x000000011b8fe9ac __43-[DVTiOSDevice prepareProxiedDevicesAsync:]_block_invoke + 554 [error] [Xcode] 7 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [error] [Xcode] 8 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191 [error] [Xcode] 9 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [error] [Xcode] 10 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [error] [Xcode] 11 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [error] [Xcode] 12 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [error] [Xcode] 13 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [error] [Xcode] 14 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [error] [Xcode] 15 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [error] [Xcode] ), DVTRadarComponentKey=261622, NSLocalizedDescription=The device rejected the pairing attempt.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.} [error] [Xcode] [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@a3f31359:8100] Connection was refused to port 8100 [info] [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@a3f31359:8100] Connection was refused to port 8100 [info] [WD Proxy] socket hang up [error] [Xcode] 2021-06-04 16:25:05.399 xcodebuild[6667:88533] iPhoneConnect: 📱 installApplicationBundleAtPath:withOptions:andError:withCallback: failed with { [error] [Xcode] NSLocalizedDescription = "Unable to install \"WebDriverAgentRunner-Runner\""; [error] [Xcode] NSUnderlyingError = "Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 \"An unknown error has occurred.\" UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220\n\t1 DTDeviceKitBase 0x000000011babcae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155\n\t2 DVTFoundation 0x000000010de0313c DVTInvokeWithStrongOwnership + 71\n\t3 DTDeviceKitBase 0x000000011babc822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440\n\t4 IDEiOSSupportCore 0x000000011b92dba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534\n\t5 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7\n\t6 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191\n\t7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12\n\t8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8\n\t9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606\n\t10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366\n\t11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811\n\t12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314\n\t13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15\n), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}"; [error] [Xcode] } [error] [Xcode] [error] [Xcode] 2021-06-04 16:25:05.743 xcodebuild[6667:88536] iPhoneConnect: 📱 failed to install /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app - error Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "Unable to install "WebDriverAgentRunner-Runner"" UserInfo={NSLocalizedDescription=Unable to install "WebDriverAgentRunner-Runner", NSUnderlyingError=0x7fea33dc98d0 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "An unknown error has occurred." UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=( [error] [Xcode] 0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [error] [Xcode] 1 DTDeviceKitBase 0x000000011babcae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 [error] [Xcode] 2 DVTFoundation 0x000000010de0313c DVTInvokeWithStrongOwnership + 71 [error] [Xcode] 3 DTDeviceKitBase 0x000000011babc822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440 [error] [Xcode] 4 IDEiOSSupportCore 0x000000011b92dba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534 [error] [Xcode] 5 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [error] [Xcode] 6 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191 [error] [Xcode] 7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [error] [Xcode] 8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [error] [Xcode] 9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [error] [Xcode] 10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [error] [Xcode] 11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [error] [Xcode] 12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [error] [Xcode] 13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [error] [Xcode] ), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}}} [error] [Xcode] [error] [Xcode] [error] [Xcode] [error] [Xcode] *** If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult [error] [Xcode] [error] [Xcode] [error] [Xcode] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 5.811 elapsed -- Testing started completed. [error] [Xcode] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start [error] [Xcode] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 5.811 sec, +5.811 sec -- end [error] [Xcode] [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@a3f31359:8100] Connection was refused to port 8100 [info] [WD Proxy] socket hang up [error] [Xcode] [error] [Xcode] Test session results, code coverage, and logs: [error] [Xcode] /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult [error] [Xcode] [error] [Xcode] [error] [Xcode] Testing failed: [error] [Xcode] WebDriverAgentRunner: [error] [Xcode] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult. (Underlying Error: Unable to install "WebDriverAgentRunner-Runner". (Underlying Error: An unknown error has occurred.))) [error] [Xcode] [error] [Xcode] ** TEST EXECUTE FAILED ** [error] [Xcode] [error] [Xcode] [error] [Xcode] Testing started [error] [Xcode] [error] [WebDriverAgent] xcodebuild exited with code '65' and signal 'null' [debug] [BaseDriver] Event 'wdaStartFailed' logged at 1622804105829 (16:25:05 GMT+0530 (India Standard Time)) [debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 [debug] [XCUITest] xcodebuild error message: [debug] [XCUITest] [debug] [XCUITest] 2021-06-04 16:25:04.509 xcodebuild[6667:88535] DTDeviceKit: Failed to mount DDI from '', error=-402653035: Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x7fea33ddec80 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653035 "The device rejected the pairing attempt." UserInfo={MobileDeviceErrorCode=(0xE8000095), com.apple.dtdevicekit.stacktrace=( [debug] [XCUITest] 0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [debug] [XCUITest] 1 DTDeviceKitBase 0x000000011baba674 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1024 [debug] [XCUITest] 2 DTDeviceKitBase 0x000000011babb08b __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 609 [debug] [XCUITest] 3 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [debug] [XCUITest] 4 libdispatch.dylib 0x00007fff203735ae _dispatch_lane_barrier_sync_invoke_and_complete + 60 [debug] [XCUITest] 5 DTDeviceKitBase 0x000000011babadca -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 185 [debug] [XCUITest] 6 IDEiOSSupportCore 0x000000011b8fe9ac __43-[DVTiOSDevice prepareProxiedDevicesAsync:]_block_invoke + 554 [debug] [XCUITest] 7 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [debug] [XCUITest] 8 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191 [debug] [XCUITest] 9 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [debug] [XCUITest] 10 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [debug] [XCUITest] 11 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [debug] [XCUITest] 12 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [debug] [XCUITest] 13 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [debug] [XCUITest] 14 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [debug] [XCUITest] 15 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [debug] [XCUITest] ), DVTRadarComponentKey=261622, NSLocalizedDescription=The device rejected the pairing attempt.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.} [debug] [XCUITest] 2021-06-04 16:25:05.399 xcodebuild[6667:88533] iPhoneConnect: 📱 installApplicationBundleAtPath:withOptions:andError:withCallback: failed with { [debug] [XCUITest] NSLocalizedDescription = "Unable to install \"WebDriverAgentRunner-Runner\""; [debug] [XCUITest] NSUnderlyingError = "Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 \"An unknown error has occurred.\" UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220\n\t1 DTDeviceKitBase 0x000000011babcae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155\n\t2 DVTFoundation 0x000000010de0313c DVTInvokeWithStrongOwnership + 71\n\t3 DTDeviceKitBase 0x000000011babc822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440\n\t4 IDEiOSSupportCore 0x000000011b92dba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534\n\t5 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7\n\t6 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191\n\t7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12\n\t8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8\n\t9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606\n\t10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366\n\t11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811\n\t12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314\n\t13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15\n), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}"; [debug] [XCUITest] } [debug] [XCUITest] 2021-06-04 16:25:05.743 xcodebuild[6667:88536] iPhoneConnect: 📱 failed to install /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app - error Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "Unable to install "WebDriverAgentRunner-Runner"" UserInfo={NSLocalizedDescription=Unable to install "WebDriverAgentRunner-Runner", NSUnderlyingError=0x7fea33dc98d0 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "An unknown error has occurred." UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=( [debug] [XCUITest] 0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [debug] [XCUITest] 1 DTDeviceKitBase 0x000000011babcae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 [debug] [XCUITest] 2 DVTFoundation 0x000000010de0313c DVTInvokeWithStrongOwnership + 71 [debug] [XCUITest] 3 DTDeviceKitBase 0x000000011babc822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440 [debug] [XCUITest] 4 IDEiOSSupportCore 0x000000011b92dba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534 [debug] [XCUITest] 5 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [debug] [XCUITest] 6 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191 [debug] [XCUITest] 7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [debug] [XCUITest] 8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [debug] [XCUITest] 9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [debug] [XCUITest] 10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [debug] [XCUITest] 11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [debug] [XCUITest] 12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [debug] [XCUITest] 13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [debug] [XCUITest] ), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}}} [debug] [XCUITest] *** If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult [debug] [XCUITest] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 5.811 elapsed -- Testing started completed. [debug] [XCUITest] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start [debug] [XCUITest] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 5.811 sec, +5.811 sec -- end [debug] [XCUITest] Test session results, code coverage, and logs: [debug] [XCUITest] /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult [debug] [XCUITest] Testing failed: [debug] [XCUITest] WebDriverAgentRunner: [debug] [XCUITest] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult. (Underlying Error: Unable to install "WebDriverAgentRunner-Runner". (Underlying Error: An unknown error has occurred.))) [debug] [XCUITest] ** TEST EXECUTE FAILED ** [debug] [XCUITest] Testing started. 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. [warn] [XCUITest] Quitting and uninstalling WebDriverAgent [info] [WebDriverAgent] Shutting down sub-processes[debug] [WebDriverAgent] No WDAs on the device. [error] [XCUITest] {} [info] [DevCon Factory] Releasing connections for a3f3135973157edaf0d74eafbf72bffb54a35f1c device on any port number [info] [DevCon Factory] Found cached connections to release: ["a3f3135973157edaf0d74eafbf72bffb54a35f1c:8100"] [info] [DevCon Factory] Releasing the listener for 'a3f3135973157edaf0d74eafbf72bffb54a35f1c:8100' [debug] [iProxy@a3f31359:8100] Closing the connection [debug] [DevCon Factory] Cached connections count: 0 [debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on. [info] [iProxy@a3f31359:8100] The connection has been closed [debug] [BaseDriver] Event 'newSessionStarted' logged at 1622804106328 (16:25:06 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 [debug] [MJSONWP] xcodebuild error message: [debug] [MJSONWP] [debug] [MJSONWP] 2021-06-04 16:25:04.509 xcodebuild[6667:88535] DTDeviceKit: Failed to mount DDI from '', error=-402653035: Error Domain=com.apple.dtdevicekit Code=806 "Failed to prepare device for development." UserInfo={AssociatedMobileDeviceFunction=AMDeviceMountImage, NSUnderlyingError=0x7fea33ddec80 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402653035 "The device rejected the pairing attempt." UserInfo={MobileDeviceErrorCode=(0xE8000095), com.apple.dtdevicekit.stacktrace=( [debug] [MJSONWP] 0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [debug] [MJSONWP] 1 DTDeviceKitBase 0x000000011baba674 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1024 [debug] [MJSONWP] 2 DTDeviceKitBase 0x000000011babb08b __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 609 [debug] [MJSONWP] 3 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [debug] [MJSONWP] 4 libdispatch.dylib 0x00007fff203735ae _dispatch_lane_barrier_sync_invoke_and_complete + 60 [debug] [MJSONWP] 5 DTDeviceKitBase 0x000000011babadca -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 185 [debug] [MJSONWP] 6 IDEiOSSupportCore 0x000000011b8fe9ac __43-[DVTiOSDevice prepareProxiedDevicesAsync:]_block_invoke + 554 [debug] [MJSONWP] 7 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [debug] [MJSONWP] 8 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191 [debug] [MJSONWP] 9 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [debug] [MJSONWP] 10 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [debug] [MJSONWP] 11 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [debug] [MJSONWP] 12 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [debug] [MJSONWP] 13 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [debug] [MJSONWP] 14 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [debug] [MJSONWP] 15 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [debug] [MJSONWP] ), DVTRadarComponentKey=261622, NSLocalizedDescription=The device rejected the pairing attempt.}}, NSLocalizedRecoverySuggestion=If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device., NSLocalizedFailure=This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running., DVTRadarComponentKey=487927, NSLocalizedDescription=Failed to prepare device for development.} [debug] [MJSONWP] 2021-06-04 16:25:05.399 xcodebuild[6667:88533] iPhoneConnect: 📱 installApplicationBundleAtPath:withOptions:andError:withCallback: failed with { [debug] [MJSONWP] NSLocalizedDescription = "Unable to install \"WebDriverAgentRunner-Runner\""; [debug] [MJSONWP] NSUnderlyingError = "Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 \"An unknown error has occurred.\" UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220\n\t1 DTDeviceKitBase 0x000000011babcae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155\n\t2 DVTFoundation 0x000000010de0313c DVTInvokeWithStrongOwnership + 71\n\t3 DTDeviceKitBase 0x000000011babc822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440\n\t4 IDEiOSSupportCore 0x000000011b92dba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534\n\t5 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7\n\t6 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191\n\t7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12\n\t8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8\n\t9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606\n\t10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366\n\t11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811\n\t12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314\n\t13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15\n), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}"; [debug] [MJSONWP] } [debug] [MJSONWP] 2021-06-04 16:25:05.743 xcodebuild[6667:88536] iPhoneConnect: 📱 failed to install /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app - error Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "Unable to install "WebDriverAgentRunner-Runner"" UserInfo={NSLocalizedDescription=Unable to install "WebDriverAgentRunner-Runner", NSUnderlyingError=0x7fea33dc98d0 {Error Domain=com.apple.dt.MobileDeviceErrorDomain Code=-402620415 "An unknown error has occurred." UserInfo={MobileDeviceErrorCode=(0xE8008001), com.apple.dtdevicekit.stacktrace=( [debug] [MJSONWP] 0 DTDeviceKitBase 0x000000011ba7e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220 [debug] [MJSONWP] 1 DTDeviceKitBase 0x000000011babcae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 [debug] [MJSONWP] 2 DVTFoundation 0x000000010de0313c DVTInvokeWithStrongOwnership + 71 [debug] [MJSONWP] 3 DTDeviceKitBase 0x000000011babc822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440 [debug] [MJSONWP] 4 IDEiOSSupportCore 0x000000011b92dba5 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.296 + 3534 [debug] [MJSONWP] 5 DVTFoundation 0x000000010df35c3d __DVT_CALLING_CLIENT_BLOCK__ + 7 [debug] [MJSONWP] 6 DVTFoundation 0x000000010df37867 __DVTDispatchAsync_block_invoke + 1191 [debug] [MJSONWP] 7 libdispatch.dylib 0x00007fff20365603 _dispatch_call_block_and_release + 12 [debug] [MJSONWP] 8 libdispatch.dylib 0x00007fff203667e6 _dispatch_client_callout + 8 [debug] [MJSONWP] 9 libdispatch.dylib 0x00007fff2036c5ca _dispatch_lane_serial_drain + 606 [debug] [MJSONWP] 10 libdispatch.dylib 0x00007fff2036d08d _dispatch_lane_invoke + 366 [debug] [MJSONWP] 11 libdispatch.dylib 0x00007fff20376bed _dispatch_workloop_worker_thread + 811 [debug] [MJSONWP] 12 libsystem_pthread.dylib 0x00007fff2050d4c0 _pthread_wqthread + 314 [debug] [MJSONWP] 13 libsystem_pthread.dylib 0x00007fff2050c493 start_wqthread + 15 [debug] [MJSONWP] ), DVTRadarComponentKey=280331, NSLocalizedDescription=An unknown error has occurred.}}} [debug] [MJSONWP] *** If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult [debug] [MJSONWP] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 5.811 elapsed -- Testing started completed. [debug] [MJSONWP] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start [debug] [MJSONWP] 2021-06-04 16:25:05.749 xcodebuild[6667:88464] [MT] IDETestOperationsObserverDebug: 5.811 sec, +5.811 sec -- end [debug] [MJSONWP] Test session results, code coverage, and logs: [debug] [MJSONWP] /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult [debug] [MJSONWP] Testing failed: [debug] [MJSONWP] WebDriverAgentRunner: [debug] [MJSONWP] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/delcy.gandhi/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.06.04_16-24-59-+0530.xcresult. (Underlying Error: Unable to install "WebDriverAgentRunner-Runner". (Underlying Error: An unknown error has occurred.))) [debug] [MJSONWP] ** TEST EXECUTE FAILED ** [debug] [MJSONWP] Testing started. 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] [MJSONWP] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:541:15) [debug] [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:571:11 [debug] [MJSONWP] at wrapped (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13) [debug] [MJSONWP] at retry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13) [debug] [MJSONWP] at retryInterval (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10) [debug] [MJSONWP] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:551:7 [debug] [MJSONWP] Destroying socket connection [info] [HTTP] <-- POST /wd/hub/session 500 17917 ms - 9396 [info] [HTTP]  [info] [HTTP] --> DELETE /wd/hub/session [info] [HTTP] {} [debug] [HTTP] No route found for /wd/hub/session [info] [HTTP] <-- DELETE /wd/hub/session 404 9 ms - 211 [info] [HTTP]