mykola-mokhnach / Appium-iOS-Inspector

Apache License 2.0
145 stars 60 forks source link

1 #41

Closed liuyue666666 closed 5 years ago

liuyue666666 commented 5 years ago

[HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true}} [MJSONWP] Calling AppiumDriver.createSession() with args: [{"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [BaseDriver] Event 'newSessionRequested' logged at 1570612334057 (17:12:14 GMT+0800 (CST)) [Appium] DeprecationWarning: 'automationName' capability was not provided. Future versions of Appium will require 'automationName' capability to be set for iOS sessions. [Appium] Requested iOS support with version >= 10, using 'XCUITest' driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up. [Appium] Appium v1.13.0 creating new XCUITestDriver (v2.113.2) session [Appium] Capabilities: [Appium] AutomationName: XCUITest [Appium] NewCommandTimeout: 3600 [Appium] bundleId: com.qihoo.video [Appium] deviceName: iPhone Xs [Appium] platformName: iOS [Appium] platformVersion: 12.3.1 [Appium] udid: 00008020-001509692E88002E [Appium] useNewWDA: true [Appium] xcodeSigningId: iPhoneDeveloper [Appium] newCommandTimeout: 0 [Appium] connectHardwareKeyboard: true [BaseDriver] Creating session with MJSONWP desired capabilities: {"AutomationName":"XCUITest... [BaseDriver] The following capabilities were provided, but are not recognized by appium: AutomationName, NewCommandTimeout. [BaseDriver] Session created with session id: 85399dee-e23d-4e18-a197-cc2696195bf3 [XCUITest] Current user: 'mengxiangyu' [XCUITest] Available devices: 00008020-001509692E88002E [XCUITest] Creating iDevice object with udid '00008020-001509692E88002E' [XCUITest] Determining device to run tests on: udid: '00008020-001509692E88002E', real device: true [XCUITest] iOS SDK Version set to '13.0' [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1570612334611 (17:12:14 GMT+0800 (CST)) [BaseDriver] Event 'appConfigured' logged at 1570612334612 (17:12:14 GMT+0800 (CST)) [BaseDriver] Event 'resetStarted' logged at 1570612334612 (17:12:14 GMT+0800 (CST)) [XCUITest] Reset: running ios real device reset flow [BaseDriver] Event 'resetComplete' logged at 1570612334613 (17:12:14 GMT+0800 (CST)) [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [BaseDriver] Event 'logCaptureStarted' logged at 1570612334784 (17:12:14 GMT+0800 (CST)) [XCUITest] Setting up real device [XCUITest] Calling: 'ios-deploy --exists --id 00008020-001509692E88002E --bundle_id com.qihoo.video' [XCUITest] Stdout: '[....] Waiting for iOS device to be connected [XCUITest] [....] Using 00008020-001509692E88002E (D321AP, D321AP, uknownos, unkarch) a.k.a. '罗衎的 iPhone'. [XCUITest] true [XCUITest] ' [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products' [XCUITest] Got derived data root: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs' [XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs' [XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITest] Shutting down sub-processes [XCUITest] Removing WDA application from device [BaseDriver] Event 'wdaUninstalled' logged at 1570612339548 (17:12:19 GMT+0800 (CST)) [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [BaseDriver] Event 'wdaStartAttempted' logged at 1570612339550 (17:12:19 GMT+0800 (CST)) [XCUITest] Launching WebDriverAgent on the device [XCUITest] Carthage found: '/usr/local/bin/carthage' [XCUITest] Killing running processes 'xcodebuild.00008020-001509692E88002E, iproxy 8100' for the device 00008020-001509692E88002E... [XCUITest] 'pgrep -nif xcodebuild.00008020-001509692E88002E' didn't detect any matching processes. Return code: 1 [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device 00008020-001509692E88002E [XCUITest] iProxy is running and is listening on port #8100 [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs -destination id=00008020-001509692E88002E IPHONEOS_DEPLOYMENT_TARGET=12.3 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-xcuitest-driver/WebDriverAgent' [XCUITest] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [XCUITest] Log file for xcodebuild test: /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.10.09_17-12-21-+0800.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-EA1FA4FB-2D71-4101-BEEA-EF8C1953DBA4/WebDriverAgentRunner-D33A7573-300F-4A19-AD0C-018F36D01AC5/Session-WebDriverAgentRunner-2019-10-09_171221-x26xD0.log [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"12.3.1\",\n \"sdkVersion\" : \"13.0\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"12.3.1\",\n \"ip\" : \"10.17.34.228\"\n },\n \"build\" : {\n \"upgradedAt\" : \"1570592905010\",\n \"time\" : \"Oct 9 2019 16:35:16\",\n \"productBundleIdentifier\" : \"com.facebook.WebDriverAgentRunner\"\n }\n },\n \"sessionId\" : \"7086EFD4-63F8-4705-B3C5-35AD47B4C53B\",\n \"status\" : 0\n}" [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP [XCUITest] WebDriverAgent information: [XCUITest] { [XCUITest] "state": "success", [XCUITest] "os": { [XCUITest] "name": "iOS", [XCUITest] "version": "12.3.1", [XCUITest] "sdkVersion": "13.0" [XCUITest] }, [XCUITest] "ios": { [XCUITest] "simulatorVersion": "12.3.1", [XCUITest] "ip": "10.17.34.228" [XCUITest] }, [XCUITest] "build": { [XCUITest] "upgradedAt": "1570592905010", [XCUITest] "time": "Oct 9 2019 16:35:16", [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [XCUITest] } [XCUITest] } [XCUITest] WebDriverAgent successfully started after 6627ms [BaseDriver] Event 'wdaSessionAttempted' logged at 1570612346231 (17:12:26 GMT+0800 (CST)) [XCUITest] Sending createSession command to WDA [WD Proxy] Matched '/session' to command name 'createSession' [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.qihoo.video","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [WD Proxy] Got response with status 200: {"value":{"sessionId":"07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6","capabilities":{"device":"iphone","browserName":" 影视大全","sdkVersion":"12.3.1","CFBundleIdentifier":"com.qihoo.video"}},"sessionId":"07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6","status":0} [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP [BaseDriver] Event 'wdaSessionStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST)) [BaseDriver] Event 'wdaStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST)) [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [BaseDriver] Event 'orientationSet' logged at 1570612349859 (17:12:29 GMT+0800 (CST)) [Appium] New XCUITestDriver session created successfully, session 85399dee-e23d-4e18-a197-cc2696195bf3 added to master session list [BaseDriver] Event 'newSessionStarted' logged at 1570612349860 (17:12:29 GMT+0800 (CST)) [MJSONWP (85399dee)] Cached the protocol value 'MJSONWP' for the new session 85399dee-e23d-4e18-a197-cc2696195bf3 [MJSONWP (85399dee)] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true} [HTTP] <-- POST /wd/hub/session 200 15806 ms - 566 [HTTP] [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [HTTP] --> POST /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/context [HTTP] {"name":"NATIVE_APP"} [MJSONWP (85399dee)] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'setContext' [iOS] Attempting to set context to 'NATIVE_APP' [MJSONWP (85399dee)] Responding to client with driver.setContext() result: null [HTTP] <-- POST /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/context 200 4 ms - 76 [HTTP] [HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getWindowSize() with args: ["current","85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getWindowSize' [HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getScreenshot() with args: ["85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getScreenshot' [HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getPageSource() with args: ["85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getPageSource' [WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/window/size] with no body [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [WD Proxy] Got response with status 200: "{\n \"value\" : \"-[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60\n\t6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756\n\t7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168\n\t8 CoreFoundation 0x00000001bc31... [MJSONWP] Matched JSONWP error code 13 to UnknownError [XCUITest] Taking screenshot with WDA [WD Proxy] Matched '/screenshot' to command name 'getScreenshot' [WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/screenshot] with no body [MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780 [MJSONWP (85399dee)] [MJSONWP (85399dee)] ( [MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256 [MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60 [MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0 [MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412 [MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60 [MJSONWP (85399dee)] 6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756 [MJSONWP (85399dee)] 7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168 [MJSONWP (85399dee)] 8 CoreFoundation 0x00000001bc313874 + 164 [MJSONWP (85399dee)] 9 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062891fc +[FBElementCommands handleGetWindowSize:] + 128 [MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220 [MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 37-[FBWebServer registerRouteHandlers:]_block_invoke + 504 [MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144 [MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44 [MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96 [MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012 [MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16 [MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888 [MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304 [MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440 [MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120 [MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148 [MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324 [MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc 24-[XCTestCase invokeTest]_block_invoke_2.218 + 72 [MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76 [MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116 [MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 24-[XCTestCase invokeTest]_block_invoke.212 + 204 [MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 24-[XCTestCase invokeTest]_block_invoke + 1092 [MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136 [MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188 [MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156 [MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c 26-[XCTestCase performTest:]_block_invoke_2 + 48 [MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 26-[XCTestCase performTest:]_block_invoke.352 + 112 [MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216 [MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676 [MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180 [MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116 [MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520 [MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624 [MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444 [MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404 [MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0 [MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0 [MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28 [MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276 [MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008 [MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108 [MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216 [MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192 [MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4 [MJSONWP (85399dee)] ) [MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19) [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size 500 73 ms - 7749 [HTTP] [WD Proxy] Got response with status 200: "{\n \"value\" : \"iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn\/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7\/KuckQAJfJyD\/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI\/PWD\/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH\/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3\/Wl9TFe7KEh9\/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI\/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi\/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK\/kV\/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r... [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [WD Proxy] Matched '/source' to command name 'getPageSource' [WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/source] with no body [MJSONWP (85399dee)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7/KuckQAJfJyD/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI/PWD/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3/Wl9TFe7KEh9/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK/kV/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r\nREUBSo4Qp4loaSJqTMVKKsqapDspWcLE7kv2tXlyhZ4c6Uv2u1vOSeBxCXzrjbsy\r\n... [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot 200 360 ms - 1968146 [HTTP] [WD Proxy] Got response with status 200: "{\n \"value\" : \"-[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96\n\t6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912\n\t7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436\n\t8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath x... [MJSONWP] Matched JSONWP error code 13 to UnknownError [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230 [MJSONWP (85399dee)] [MJSONWP (85399dee)] ( [MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256 [MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60 [MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0 [MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412 [MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96 [MJSONWP (85399dee)] 6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912 [MJSONWP (85399dee)] 7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436 [MJSONWP (85399dee)] 8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath xmlStringWithRootElement:] + 108 [MJSONWP (85399dee)] 9 WebDriverAgentLib 0x000000010624ac8c -[XCUIApplication(FBHelpers) fb_xmlRepresentation] + 64 [MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062696b0 +[FBDebugCommands handleGetSourceCommand:] + 504 [MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220 [MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 37-[FBWebServer registerRouteHandlers:]_block_invoke + 504 [MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144 [MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44 [MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96 [MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012 [MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16 [MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888 [MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304 [MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440 [MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120 [MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148 [MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324 [MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc 24-[XCTestCase invokeTest]_block_invoke_2.218 + 72 [MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76 [MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116 [MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 24-[XCTestCase invokeTest]_block_invoke.212 + 204 [MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 24-[XCTestCase invokeTest]_block_invoke + 1092 [MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136 [MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188 [MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156 [MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c 26-[XCTestCase performTest:]_block_invoke_2 + 48 [MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 26-[XCTestCase performTest:]_block_invoke.352 + 112 [MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216 [MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676 [MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180 [MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116 [MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520 [MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624 [MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444 [MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404 [MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0 [MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0 [MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28 [MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276 [MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008 [MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108 [MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216 [MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192 [MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4 [MJSONWP (85399dee)] ) [MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19) [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source 500 648 ms - 7789 [HTTP] Appium server stopped successfully

What is this problem?

liuyue666666 commented 5 years ago

[HTTP] --> POST /wd/hub/session

[BaseDriver] Creating session with MJSONWP desired capabilities: {"AutomationName":"XCUITest... [BaseDriver] The following capabilities were provided, but are not recognized by appium: AutomationName, NewCommandTimeout. [XCUITest] iOS SDK Version set to '13.0' [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1570612334611 (17:12:14 GMT+0800 (CST)) [BaseDriver] Event 'appConfigured' logged at 1570612334612 (17:12:14 GMT+0800 (CST)) [BaseDriver] Event 'resetStarted' logged at 1570612334612 (17:12:14 GMT+0800 (CST)) [XCUITest] Reset: running ios real device reset flow [BaseDriver] Event 'resetComplete' logged at 1570612334613 (17:12:14 GMT+0800 (CST)) [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [BaseDriver] Event 'logCaptureStarted' logged at 1570612334784 (17:12:14 GMT+0800 (CST)) [XCUITest] Setting up real device [XCUITest] Calling: 'ios-deploy --exists --id 00008020-001509692E88002E --bundle_id com.qihoo.video' [XCUITest] Stdout: '[....] Waiting for iOS device to be connected [XCUITest] true [XCUITest] ' [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products' [XCUITest] Got derived data root: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs' [XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs' [XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITest] Shutting down sub-processes [XCUITest] Removing WDA application from device [BaseDriver] Event 'wdaUninstalled' logged at 1570612339548 (17:12:19 GMT+0800 (CST)) [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [BaseDriver] Event 'wdaStartAttempted' logged at 1570612339550 (17:12:19 GMT+0800 (CST)) [XCUITest] Launching WebDriverAgent on the device [XCUITest] Carthage found: '/usr/local/bin/carthage' [XCUITest] Killing running processes 'xcodebuild.*9692E88002E, iproxy 8100' for the device 2E88002E... [XCUITest] 'pgrep -nif xcodebuild.09692E88002E' didn't detect any matching processes. Return code: 1 [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device *002E [XCUITest] iProxy is running and is listening on port #8100 [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs -destination id=*-001509692E88002E IPHONEOS_DEPLOYMENT_TARGET=12.3 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-xcuitest-driver/WebDriverAgent' [XCUITest] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [XCUITest] Log file for xcodebuild test: /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.10.09_17-12-21-+0800.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-EA1FA4FB-2D71-4101-BEEA-EF8C1953DBA4/WebDriverAgentRunner-D33A7573-300F-4A19-AD0C-018F36D01AC5/Session-WebDriverAgentRunner-2019-10-09_171221-x26xD0.log [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got response with status 200: "{\n "value" : {\n "state" : "success",\n "os" : {\n "name" : "iOS",\n "version" : "12.3.1",\n "sdkVersion" : "13.0"\n },\n "ios" : {\n "simulatorVersion" : "12.3.1",\n "ip" : "10.17.34.228"\n },\n "build" : {\n "upgradedAt" : "1570592905010",\n "time" : "Oct 9 2019 16:35:16",\n "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"\n }\n },\n "sessionId" : "**5AD47B4C53B",\n "status" : 0\n}" [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP [XCUITest] WebDriverAgent information: [XCUITest] { [XCUITest] "state": "success", [XCUITest] "os": { [XCUITest] "name": "iOS", [XCUITest] "version": "12.3.1", [XCUITest] "sdkVersion": "13.0" [XCUITest] }, [XCUITest] "ios": { [XCUITest] "simulatorVersion": "12.3.1", [XCUITest] "ip": ".228" [XCUITest] }, [XCUITest] "build": { [XCUITest] "upgradedAt": "1570592905010", [XCUITest] "time": "Oct 9 2019 16:35:16", [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [XCUITest] } [XCUITest] } [XCUITest] WebDriverAgent successfully started after 6627ms [BaseDriver] Event 'wdaSessionAttempted' logged at 1570612346231 (17:12:26 GMT+0800 (CST)) [XCUITest] Sending createSession command to WDA [WD Proxy] Matched '/session' to command name 'createSession' [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.qihoo.video","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [WD Proxy] Got response with status 200: {"value":{"sessionId":"0*3CF4F6","capabilities":{"device":"iphone","browserName":" 全","sdkVersion":"12.3.1","CFBundleIdentifier":"com.qihoo.video"}},"sessionId":"**DDC3CF4F6","status":0} [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP [BaseDriver] Event 'wdaSessionStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST)) [BaseDriver] Event 'wdaStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST)) [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [BaseDriver] Event 'orientationSet' logged at 1570612349859 (17:12:29 GMT+0800 (CST)) [Appium] New XCUITestDriver session created successfully, session 85399dee-e23d-4e18-a197-cc2696195bf3 added to master session list [BaseDriver] Event 'newSessionStarted' logged at 1570612349860 (17:12:29 GMT+0800 (CST)) [MJSONWP (85399dee)] Cached the protocol value 'MJSONWP' for the new session 18-a197-cc2696195bf3 [MJSONWP (85399dee)] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"co","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"****002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true} [HTTP] <-- POST /wd/hub/session 200 15806 ms - 566 [HTTP] [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [HTTP] --> POST /wd/hub/session/2696195bf3/context [HTTP] {"name":"NATIVE_APP"} [MJSONWP (85399dee)] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","c2696195bf3"] [XCUITest] Executing command 'setContext' [iOS] Attempting to set context to 'NATIVE_APP' [MJSONWP (85399dee)] Responding to client with driver.setContext() result: null [HTTP] <-- POST /wd/hub/session/c2696195bf3/context 200 4 ms - 76 [HTTP] [HTTP] --> GET /wd/hub/session/3d-4e18-a197-cc2696195bf3/window/current/size [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getWindowSize() with args: ["current","84e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getWindowSize' [HTTP] --> GET /wd/hub/session/-4e18-a197-cc2696195bf3/screenshot [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getScreenshot() with args: ["3d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getScreenshot' [HTTP] --> GET /wd/hub/session/18-a197-cc2696195bf3/source [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getPageSource() with args: ["23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getPageSource' [WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/C3CF4F6/window/size] with no body [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [WD Proxy] Got response with status 200: "{\n "value" : "-[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60\n\t6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756\n\t7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168\n\t8 CoreFoundation 0x00000001bc31... [MJSONWP] Matched JSONWP error code 13 to UnknownError [XCUITest] Taking screenshot with WDA [WD Proxy] Matched '/screenshot' to command name 'getScreenshot' [WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/CF4F6/screenshot] with no body [MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780 [MJSONWP (85399dee)] [MJSONWP (85399dee)] ( [MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256 [MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60 [MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0 [MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412 [MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60 [MJSONWP (85399dee)] 6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756 [MJSONWP (85399dee)] 7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168 [MJSONWP (85399dee)] 8 CoreFoundation 0x00000001bc313874 + 164 [MJSONWP (85399dee)] 9 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062891fc +[FBElementCommands handleGetWindowSize:] + 128 [MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220 [MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 37-[FBWebServer registerRouteHandlers:]_block_invoke + 504 [MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144 [MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44 [MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96 [MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012 [MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16 [MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888 [MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304 [MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440 [MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120 [MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148 [MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324 [MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc 24-[XCTestCase invokeTest]_block_invoke_2.218 + 72 [MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76 [MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116 [MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 24-[XCTestCase invokeTest]_block_invoke.212 + 204 [MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 24-[XCTestCase invokeTest]_block_invoke + 1092 [MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136 [MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188 [MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156 [MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c 26-[XCTestCase performTest:]_block_invoke_2 + 48 [MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 26-[XCTestCase performTest:]_block_invoke.352 + 112 [MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216 [MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676 [MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180 [MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116 [MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520 [MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624 [MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444 [MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404 [MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0 [MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0 [MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28 [MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276 [MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008 [MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108 [MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216 [MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192 [MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4 [MJSONWP (85399dee)] ) [MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19) [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size 500 73 ms - 7749 [HTTP] [WD Proxy] Got response with status 200: "{\n "value" : "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn\/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7\/KuckQAJfJyD\/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI\/PWD\/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH\/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3\/Wl9TFe7KEh9\/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI\/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi\/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK\/kV\/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r... [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [WD Proxy] Matched '/source' to command name 'getPageSource' [WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/source] with no body [MJSONWP (85399dee)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7/KuckQAJfJyD/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI/PWD/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3/Wl9TFe7KEh9/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK/kV/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r\nREUBSo4Qp4loaSJqTMVKKsqapDspWcLE7kv2tXlyhZ4c6Uv2u1vOSeBxCXzrjbsy\r\n... [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot 200 360 ms - 1968146 [HTTP] [WD Proxy] Got response with status 200: "{\n "value" : "-[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96\n\t6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912\n\t7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436\n\t8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath x... [MJSONWP] Matched JSONWP error code 13 to UnknownError [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230 [MJSONWP (85399dee)] [MJSONWP (85399dee)] ( [MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256 [MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60 [MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0 [MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412 [MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96 [MJSONWP (85399dee)] 6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912 [MJSONWP (85399dee)] 7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436 [MJSONWP (85399dee)] 8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath xmlStringWithRootElement:] + 108 [MJSONWP (85399dee)] 9 WebDriverAgentLib 0x000000010624ac8c -[XCUIApplication(FBHelpers) fb_xmlRepresentation] + 64 [MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062696b0 +[FBDebugCommands handleGetSourceCommand:] + 504 [MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220 [MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 37-[FBWebServer registerRouteHandlers:]_block_invoke + 504 [MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144 [MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44 [MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96 [MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012 [MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16 [MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888 [MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304 [MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440 [MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120 [MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148 [MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324 [MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc 24-[XCTestCase invokeTest]_block_invoke_2.218 + 72 [MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76 [MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116 [MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 24-[XCTestCase invokeTest]_block_invoke.212 + 204 [MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 24-[XCTestCase invokeTest]_block_invoke + 1092 [MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136 [MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188 [MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156 [MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c 26-[XCTestCase performTest:]_block_invoke_2 + 48 [MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 26-[XCTestCase performTest:]_block_invoke.352 + 112 [MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216 [MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676 [MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180 [MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116 [MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520 [MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624 [MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444 [MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404 [MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0 [MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0 [MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28 [MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276 [MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008 [MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108 [MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216 [MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192 [MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4 [MJSONWP (85399dee)] ) [MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19) [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source 500 648 ms - 7789 [HTTP] Appium server stopped successfully

What is this problem?

liuyue666666 commented 5 years ago

[HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true}} [MJSONWP] Calling AppiumDriver.createSession() with args: [{"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [BaseDriver] Event 'newSessionRequested' logged at 1570612334057 (17:12:14 GMT+0800 (CST)) [Appium] DeprecationWarning: 'automationName' capability was not provided. Future versions of Appium will require 'automationName' capability to be set for iOS sessions. [Appium] Requested iOS support with version >= 10, using 'XCUITest' driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up. [Appium] Appium v1.13.0 creating new XCUITestDriver (v2.113.2) session [Appium] Capabilities: [Appium] AutomationName: XCUITest [Appium] NewCommandTimeout: 3600 [Appium] bundleId: com.qihoo.video [Appium] deviceName: iPhone Xs [Appium] platformName: iOS [Appium] platformVersion: 12.3.1 [Appium] udid: 00008020-001509692E88002E [Appium] useNewWDA: true [Appium] xcodeSigningId: iPhoneDeveloper [Appium] newCommandTimeout: 0 [Appium] connectHardwareKeyboard: true [BaseDriver] Creating session with MJSONWP desired capabilities: {"AutomationName":"XCUITest... [BaseDriver] The following capabilities were provided, but are not recognized by appium: AutomationName, NewCommandTimeout. [BaseDriver] Session created with session id: 85399dee-e23d-4e18-a197-cc2696195bf3 [XCUITest] Current user: 'mengxiangyu' [XCUITest] Available devices: 00008020-001509692E88002E [XCUITest] Creating iDevice object with udid '00008020-001509692E88002E' [XCUITest] Determining device to run tests on: udid: '00008020-001509692E88002E', real device: true [XCUITest] iOS SDK Version set to '13.0' [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1570612334611 (17:12:14 GMT+0800 (CST)) [BaseDriver] Event 'appConfigured' logged at 1570612334612 (17:12:14 GMT+0800 (CST)) [BaseDriver] Event 'resetStarted' logged at 1570612334612 (17:12:14 GMT+0800 (CST)) [XCUITest] Reset: running ios real device reset flow [BaseDriver] Event 'resetComplete' logged at 1570612334613 (17:12:14 GMT+0800 (CST)) [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [iOSLog] Starting iOS device log capture with: 'idevicesyslog' [BaseDriver] Event 'logCaptureStarted' logged at 1570612334784 (17:12:14 GMT+0800 (CST)) [XCUITest] Setting up real device [XCUITest] Calling: 'ios-deploy --exists --id 00008020-001509692E88002E --bundle_id com.qihoo.video' [XCUITest] Stdout: '[....] Waiting for iOS device to be connected [XCUITest] [....] Using 00008020-001509692E88002E (D321AP, D321AP, uknownos, unkarch) a.k.a. '罗衎的 iPhone'. [XCUITest] true [XCUITest] ' [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent' [XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj' [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [XCUITest] Parsed BUILD_DIR configuration value: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products' [XCUITest] Got derived data root: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs' [XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs' [XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITest] Shutting down sub-processes [XCUITest] Removing WDA application from device [BaseDriver] Event 'wdaUninstalled' logged at 1570612339548 (17:12:19 GMT+0800 (CST)) [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [BaseDriver] Event 'wdaStartAttempted' logged at 1570612339550 (17:12:19 GMT+0800 (CST)) [XCUITest] Launching WebDriverAgent on the device [XCUITest] Carthage found: '/usr/local/bin/carthage' [XCUITest] Killing running processes 'xcodebuild.00008020-001509692E88002E, iproxy 8100' for the device 00008020-001509692E88002E... [XCUITest] 'pgrep -nif xcodebuild.00008020-001509692E88002E' didn't detect any matching processes. Return code: 1 [XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1 [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device 00008020-001509692E88002E [XCUITest] iProxy is running and is listening on port #8100 [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs -destination id=00008020-001509692E88002E IPHONEOS_DEPLOYMENT_TARGET=12.3 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-xcuitest-driver/WebDriverAgent' [XCUITest] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITest] Waiting up to 60000ms for WebDriverAgent to start [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [XCUITest] Log file for xcodebuild test: /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.10.09_17-12-21-+0800.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-EA1FA4FB-2D71-4101-BEEA-EF8C1953DBA4/WebDriverAgentRunner-D33A7573-300F-4A19-AD0C-018F36D01AC5/Session-WebDriverAgentRunner-2019-10-09_171221-x26xD0.log [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"} [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [WD Proxy] Got response with status 200: "{\n "value" : {\n "state" : "success",\n "os" : {\n "name" : "iOS",\n "version" : "12.3.1",\n "sdkVersion" : "13.0"\n },\n "ios" : {\n "simulatorVersion" : "12.3.1",\n "ip" : "10.17.34.228"\n },\n "build" : {\n "upgradedAt" : "1570592905010",\n "time" : "Oct 9 2019 16:35:16",\n "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"\n }\n },\n "sessionId" : "7086EFD4-63F8-4705-B3C5-35AD47B4C53B",\n "status" : 0\n}" [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP [XCUITest] WebDriverAgent information: [XCUITest] { [XCUITest] "state": "success", [XCUITest] "os": { [XCUITest] "name": "iOS", [XCUITest] "version": "12.3.1", [XCUITest] "sdkVersion": "13.0" [XCUITest] }, [XCUITest] "ios": { [XCUITest] "simulatorVersion": "12.3.1", [XCUITest] "ip": "10.17.34.228" [XCUITest] }, [XCUITest] "build": { [XCUITest] "upgradedAt": "1570592905010", [XCUITest] "time": "Oct 9 2019 16:35:16", [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [XCUITest] } [XCUITest] } [XCUITest] WebDriverAgent successfully started after 6627ms [BaseDriver] Event 'wdaSessionAttempted' logged at 1570612346231 (17:12:26 GMT+0800 (CST)) [XCUITest] Sending createSession command to WDA [WD Proxy] Matched '/session' to command name 'createSession' [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.qihoo.video","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}} [WD Proxy] Got response with status 200: {"value":{"sessionId":"07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6","capabilities":{"device":"iphone","browserName":" 影视大全","sdkVersion":"12.3.1","CFBundleIdentifier":"com.qihoo.video"}},"sessionId":"07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6","status":0} [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP [BaseDriver] Event 'wdaSessionStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST)) [BaseDriver] Event 'wdaStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST)) [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [BaseDriver] Event 'orientationSet' logged at 1570612349859 (17:12:29 GMT+0800 (CST)) [Appium] New XCUITestDriver session created successfully, session 85399dee-e23d-4e18-a197-cc2696195bf3 added to master session list [BaseDriver] Event 'newSessionStarted' logged at 1570612349860 (17:12:29 GMT+0800 (CST)) [MJSONWP (85399dee)] Cached the protocol value 'MJSONWP' for the new session 85399dee-e23d-4e18-a197-cc2696195bf3 [MJSONWP (85399dee)] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true} [HTTP] <-- POST /wd/hub/session 200 15806 ms - 566 [HTTP] [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [HTTP] --> POST /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/context [HTTP] {"name":"NATIVE_APP"} [MJSONWP (85399dee)] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'setContext' [iOS] Attempting to set context to 'NATIVE_APP' [MJSONWP (85399dee)] Responding to client with driver.setContext() result: null [HTTP] <-- POST /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/context 200 4 ms - 76 [HTTP] [HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getWindowSize() with args: ["current","85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getWindowSize' [HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getScreenshot() with args: ["85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getScreenshot' [HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source [HTTP] {} [MJSONWP (85399dee)] Calling AppiumDriver.getPageSource() with args: ["85399dee-e23d-4e18-a197-cc2696195bf3"] [XCUITest] Executing command 'getPageSource' [WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/window/size] with no body [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [WD Proxy] Got response with status 200: "{\n "value" : "-[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60\n\t6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756\n\t7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168\n\t8 CoreFoundation 0x00000001bc31... [MJSONWP] Matched JSONWP error code 13 to UnknownError [XCUITest] Taking screenshot with WDA [WD Proxy] Matched '/screenshot' to command name 'getScreenshot' [WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/screenshot] with no body [MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780 [MJSONWP (85399dee)] [MJSONWP (85399dee)] ( [MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256 [MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60 [MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0 [MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412 [MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60 [MJSONWP (85399dee)] 6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756 [MJSONWP (85399dee)] 7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168 [MJSONWP (85399dee)] 8 CoreFoundation 0x00000001bc313874 + 164 [MJSONWP (85399dee)] 9 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062891fc +[FBElementCommands handleGetWindowSize:] + 128 [MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220 [MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 37-[FBWebServer registerRouteHandlers:]_block_invoke + 504 [MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144 [MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44 [MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96 [MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012 [MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16 [MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888 [MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304 [MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440 [MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120 [MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148 [MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324 [MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc 24-[XCTestCase invokeTest]_block_invoke_2.218 + 72 [MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76 [MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116 [MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 24-[XCTestCase invokeTest]_block_invoke.212 + 204 [MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 24-[XCTestCase invokeTest]_block_invoke + 1092 [MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136 [MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188 [MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156 [MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c 26-[XCTestCase performTest:]_block_invoke_2 + 48 [MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 26-[XCTestCase performTest:]_block_invoke.352 + 112 [MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216 [MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676 [MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180 [MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116 [MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520 [MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624 [MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444 [MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404 [MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0 [MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0 [MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28 [MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276 [MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008 [MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108 [MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216 [MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192 [MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4 [MJSONWP (85399dee)] ) [MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19) [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size 500 73 ms - 7749 [HTTP] [WD Proxy] Got response with status 200: "{\n "value" : "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn\/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7\/KuckQAJfJyD\/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI\/PWD\/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH\/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3\/Wl9TFe7KEh9\/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI\/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi\/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK\/kV\/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r... [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [WD Proxy] Matched '/source' to command name 'getPageSource' [WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/source] with no body [MJSONWP (85399dee)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7/KuckQAJfJyD/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI/PWD/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3/Wl9TFe7KEh9/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK/kV/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r\nREUBSo4Qp4loaSJqTMVKKsqapDspWcLE7kv2tXlyhZ4c6Uv2u1vOSeBxCXzrjbsy\r\n... [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot 200 360 ms - 1968146 [HTTP] [WD Proxy] Got response with status 200: "{\n "value" : "-[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96\n\t6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912\n\t7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436\n\t8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath x... [MJSONWP] Matched JSONWP error code 13 to UnknownError [iProxy] recv failed: Connection reset by peer [iProxy] recv failed: Operation not permitted [MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230 [MJSONWP (85399dee)] [MJSONWP (85399dee)] ( [MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256 [MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60 [MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0 [MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412 [MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96 [MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96 [MJSONWP (85399dee)] 6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912 [MJSONWP (85399dee)] 7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436 [MJSONWP (85399dee)] 8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath xmlStringWithRootElement:] + 108 [MJSONWP (85399dee)] 9 WebDriverAgentLib 0x000000010624ac8c -[XCUIApplication(FBHelpers) fb_xmlRepresentation] + 64 [MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062696b0 +[FBDebugCommands handleGetSourceCommand:] + 504 [MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220 [MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 37-[FBWebServer registerRouteHandlers:]_block_invoke + 504 [MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144 [MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44 [MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96 [MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20 [MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012 [MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16 [MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888 [MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304 [MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440 [MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120 [MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148 [MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324 [MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc 24-[XCTestCase invokeTest]_block_invoke_2.218 + 72 [MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76 [MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116 [MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 24-[XCTestCase invokeTest]_block_invoke.212 + 204 [MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 24-[XCTestCase invokeTest]_block_invoke + 1092 [MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136 [MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188 [MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156 [MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c 26-[XCTestCase performTest:]_block_invoke_2 + 48 [MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72 [MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112 [MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 26-[XCTestCase performTest:]_block_invoke.352 + 112 [MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216 [MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676 [MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 27-[XCTestSuite performTest:]_block_invoke + 284 [MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76 [MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344 [MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64 [MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180 [MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116 [MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520 [MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624 [MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444 [MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404 [MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0 [MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0 [MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28 [MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276 [MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008 [MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452 [MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108 [MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216 [MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192 [MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4 [MJSONWP (85399dee)] ) [MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19) [HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source 500 648 ms - 7789 [HTTP] Appium server stopped successfully

What is this problem?