请问解决了吗
我最后使用了 xcode 11
已解决,感谢!
已经解决啦!我把 appium 升级后就好了。虽然 inspector 命令在编译 WDA 还是不能识别,但是 appium 已经可以正常运行了
我下载了最新的 appium 1.16.0, 重新编译自带的 WDA,虽然 inspector 命令还是没有被识别,但是 appium 可以正常运行了,感谢!!
真机
xcode 日志
2020-01-14 16:02:14.341924+0800 WebDriverAgentRunner-Runner[2412:757583] Running tests...
objc[2412]: Class GCDAsyncSocketPreBuffer is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d620) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x106744578). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncReadPacket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d670) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x1067445c8). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncWritePacket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d6c0) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x106744618). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncSpecialPacket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d710) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x106744668). One of the two will be used. Which one is undefined.
objc[2412]: Class GCDAsyncSocket is implemented in both /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x10928d760) and /private/var/containers/Bundle/Application/B9A34AA7-B3F1-4ADB-AA0C-760597A6E27B/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x1067446b8). One of the two will be used. Which one is undefined.
Test Suite 'All tests' started at 2020-01-14 16:02:14.545
Test Suite 'WebDriverAgentRunner.xctest' started at 2020-01-14 16:02:14.546
Test Suite 'UITestingUITests' started at 2020-01-14 16:02:14.546
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2020-01-14 16:02:14.547
t = 0.00s Set Up
2020-01-14 16:02:14.594060+0800 WebDriverAgentRunner-Runner[2412:757583] Built at Jan 14 2020 15:13:22
2020-01-14 16:02:14.609648+0800 WebDriverAgentRunner-Runner[2412:757583] ServerURLHere->http://10.2.29.36:8100<-ServerURLHere
2020-01-14 16:02:14.609966+0800 WebDriverAgentRunner-Runner[2412:757701] Using singleton test manager
2020-01-14 16:07:42.907821+0800 WebDriverAgentRunner-Runner[2412:757583] -[XCUIApplication resolve]: unrecognized selector sent to instance 0x2809f0af0
2020-01-14 16:11:48.861791+0800 WebDriverAgentRunner-Runner[2412:757583] -[XCUIApplication resolve]: unrecognized selector sent to instance 0x2809f0af0
请问什么原因
我的 inspector 页面获取不到页面元素,请问楼主遇到这样的情况了嘛?
求解答
我运行多台设备的时候,两个手机都启动了,但是生成的截图会在两个文件夹里都有,请问这要怎么控制?
问题已经解决了:
brew uninstall appium
brew install -g appium@1.14.2
重新安装之后,编译了 appium 自带的 WDA,总算解决了。
请问有在 iPhone 上跑成功的吗?
请问现在可以成功运行了吗?
求助
请问这个问题解决了吗?我也遇到了一样的问题
遇到的一个很坑的地方:
我的电脑上装了 appium server 和 appium desktop 。
我替换的位置是 appium desktop 中 WDA 的位置,但是我却是在终端启动的 appium,所以我还一直以为有问题。
然后突然想到,在 appium desktop 启动了 appium, 就正常了。
没想到第一步就这么艰难
我刚刚弄好。
我的解决方法是:
我把 xcode 降了,真的好了耶!!感谢
我下载了最新版本 appium 的 WDA,还是会报错
An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: A new session could not be created. Details: 'capabilities' is mandatory to create a new session Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
下载了 appium 的 WDA 还是不行,app 都不会启动
加上日志了,大神快帮忙看一下吧,感谢
在编译 WDA 的时候,WDALib 那里总是显示 Dont code sign
但是子啊 WDARunner 那里就有签名证书,头大
appium 日志:
[XCUITest] 4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92
[XCUITest] 5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52
[XCUITest] 6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152
[XCUITest] 7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84
[XCUITest] 8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128
[XCUITest] 9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession application] + 332
[XCUITest] 10 WebDriverAgentLib 0x0000000106fe2818 +[FBSessionCommands currentCapabilities] + 124
[XCUITest] 11 WebDriverAgentLib 0x0000000106fe26d4 +[FBSessionCommands sessionInformation] + 288
[XCUITest] 12 WebDriverAgentLib 0x0000000106fe1d0c +[FBSessionCommands handleCreateSession:] + 1404
[XCUITest] 13 WebDriverAgentLib 0x0000000106fc7df4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
[XCUITest] 14 WebDriverAgentLib 0x0000000106fbe294 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
[XCUITest] 15 RoutingHTTPServer 0x000000010707e3cc -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
[XCUITest] 16 RoutingHTTPServer 0x000000010707eb80 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
[XCUITest] 17 libdispatch.dylib 0x000000018a4829a0 + 16
[XCUITest] 18 libdispatch.dylib 0x000000018a4937a8 + 304
[XCUITest] 19 libdispatch.dylib 0x000000018a4829a0 + 16
[XCUITest] 20 libdispatch.dylib 0x000000018a4875e8 _dispatch_main_queue_callback_4CF + 996
[XCUITest] 21 CoreFoundation 0x000000018b5790c8 + 12
[XCUITest] 22 CoreFoundation 0x000000018b576ce4 + 1572
[XCUITest] 23 CoreFoundation 0x000000018b4a6da4 CFRunLoopRunSpecific + 424
[XCUITest] 24 Foundation 0x000000018bfc0d74 + 304
[XCUITest] 25 WebDriverAgentLib 0x0000000106fbd2a0 -[FBWebServer startServing] + 416
[XCUITest] 26 WebDriverAgentRunner 0x0000000106fa7be8 -[UITestingUITests testRunner] + 124
[XCUITest] 27 CoreFoundation 0x000000018b5d0e80 + 144
[XCUITest] 28 CoreFoundation 0x000000018b4c62c4 + 292
[XCUITest] 29 XCTest 0x00000001001c200c __24-[XCTestCase invokeTest]_block_invoke_2.200 + 68
[XCUITest] 30 XCTest 0x0000000100229ef8 -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 68
[XCUITest] 31 XCTest 0x00000001001ca604 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 112
[XCUITest] 32 XCTest 0x00000001001c1f98 __24-[XCTestCase invokeTest]_block_invoke.194 + 196
[XCUITest] 33 XCTest 0x0000000100216ed4 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 64
[XCUITest] 34 XCTest 0x0000000100216dec -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 108
[XCUITest] 35 XCTest 0x00000001001c1bc8 __24-[XCTestCase invokeTest]_block_invoke + 808
[XCUITest] 36 XCTest 0x000000010021ce8c -[XCUITestContext performInScope:] + 144
[XCUITest] 37 XCTest 0x00000001001c17cc -[XCTestCase testContextPerformInScope:] + 120
[XCUITest] 38 XCTest 0x00000001001c188c -[XCTestCase invokeTest] + 140
[XCUITest] 39 XCTest 0x00000001001c335c __26-[XCTestCase performTest:]_block_invoke_2 + 44
[XCUITest] 40 XCTest 0x0000000100216ed4 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 64
[XCUITest] 41 XCTest 0x0000000100216dec -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 108
[XCUITest] 42 XCTest 0x00000001001c3274 __26-[XCTestCase performTest:]_block_invoke.324 + 96
[XCUITest] 43 XCTest 0x0000000100227440 +[XCTContext runInContextForTestCase:block:] + 216
[XCUITest] 44 XCTest 0x00000001001c2a2c -[XCTestCase performTest:] + 644
[XCUITest] 45 XCTest 0x00000001002040e8 -[XCTest runTest] + 60
[XCUITest] 46 XCTest 0x00000001001bd81c __27-[XCTestSuite performTest:]_block_invoke + 280
[XCUITest] 47 XCTest 0x00000001001bd13c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 68
[XCUITest] 48 XCTest 0x00000001001bd3d8 -[XCTestSuite performTest:] + 276
[XCUITest] 49 XCTest 0x00000001002040e8 -[XCTest runTest] + 60
[XCUITest] 50 XCTest 0x00000001001bd81c __27-[XCTestSuite performTest:]_block_invoke + 280
[XCUITest] 51 XCTest 0x00000001001bd13c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 68
[XCUITest] 52 XCTest 0x00000001001bd3d8 -[XCTestSuite performTest:] + 276
[XCUITest] 53 XCTest 0x00000001002040e8 -[XCTest runTest] + 60
[XCUITest] 54 XCTest 0x00000001001bd81c __27-[XCTestSuite performTest:]_block_invoke + 280
[XCUITest] 55 XCTest 0x00000001001bd13c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 68
[XCUITest] 56 XCTest 0x00000001001bd3d8 -[XCTestSuite performTest:] + 276
[XCUITest] 57 XCTest 0x00000001002040e8 -[XCTest runTest] + 60
[XCUITest] 58 XCTest 0x00000001002346a8 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 176
[XCUITest] 59 XCTest 0x0000000100234778 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.80 + 60
[XCUITest] 60 XCTest 0x00000001001d46d0 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 516
[XCUITest] 61 XCTest 0x0000000100234464 -[XCTTestRunSession runTestsAndReturnError:] + 596
[XCUITest] 62 XCTest 0x00000001001a2704 -[XCTestDriver runTestsAndReturnError:] + 436
[XCUITest] 63 XCTest 0x00000001002238c0 _XCTestMain + 2248
[XCUITest] 64 WebDriverAgentRunner-Runner 0x000000010006bb60 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
[XCUITest] 65 WebDriverAgentRunner-Runner 0x000000010006ba68 _XCTRunnerRunTests + 0
[XCUITest] 66 CoreFoundation 0x000000018b57930c + 20
[XCUITest] 67 CoreFoundation 0x000000018b578b28 + 288
[XCUITest] 68 CoreFoundation 0x000000018b576998 + 728
[XCUITest] 69 CoreFoundation 0x000000018b4a6da4 CFRunLoopRunSpecific + 424
[XCUITest] 70 GraphicsServices 0x000000018cf10074 GSEventRunModal + 100
[XCUITest] 71 UIKit 0x0000000191761058 UIApplicationMain + 208
[XCUITest] 72 WebDriverAgentRunner-Runner 0x000000010006bd3c main + 192
[XCUITest] 73 libdyld.dylib 0x000000018a4b559c + 4
[XCUITest] )). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133711090 (11:21:51 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133715720 (11:21:55 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133720227 (11:22:00 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133724824 (11:22:04 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133729343 (11:22:09 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133733902 (11:22:13 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133738537 (11:22:18 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[BaseDriver] Event 'wdaSessionAttempted' logged at 1574133743227 (11:22:23 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.fenbi.solarinhouse","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation 0x000000018b5d1e34 + 0\n\t3 CoreFoundation 0x000000018b5cef54 + 916\n\t4 CoreFoundation 0x000000018b4cad4c _CF_forwarding_prep_0 + 92\n\t5 WebDriverAgentLib 0x0000000106ff02a4 __37+[FBApplication fb_activeApplication]_block_invoke + 52\n\t6 WebDriverAgentLib 0x0000000106fc93d4 -[FBRunLoopSpinner spinUntilTrue:error:] + 152\n\t7 WebDriverAgentLib 0x0000000106fc9314 -[FBRunLoopSpinner spinUntilTrue:] + 84\n\t8 WebDriverAgentLib 0x0000000106ff0004 +[FBApplication fb_activeApplication] + 128\n\t9 WebDriverAgentLib 0x0000000106fdba48 -[FBSession a...
[WD Proxy] Got an unexpected response: {"value":"+[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130\n\n(\n\t0 CoreFoundation 0x000000018b5caff8 + 148\n\t1 libobjc.A.dylib 0x000000018a02c538 objc_exception_throw + 56\n\t2 CoreFoundation ...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest). Retrying...
[XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[XCUITest]
XCUITest Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[XCUITest] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:476:13)
[XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
[iOSLog] Stopping iOS log capture
[BaseDriver] Event 'newSessionStarted' logged at 1574133747300 (11:22:27 GMT+0800 (CST))
[MJSONWP] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
[MJSONWP]
MJSONWP Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[MJSONWP] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:476:13)
[HTTP] <-- POST /wd/hub/session 500 71731 ms - 8255
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 7 ms - 57
[HTTP]
这是编译 WDA 的日志
2019-11-19 11:11:22.869468+0800 WebDriverAgentRunner-Runner[884:444124] Running tests...
2019-11-19 11:11:23.363392+0800 WebDriverAgentRunner-Runner[884:444124] Continuing to run tests in the background with task ID 1
Test Suite 'All tests' started at 2019-11-19 11:11:24.002
Test Suite 'WebDriverAgentRunner.xctest' started at 2019-11-19 11:11:24.002
Test Suite 'UITestingUITests' started at 2019-11-19 11:11:24.003
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2019-11-19 11:11:24.003
t = 0.00s Set Up
2019-11-19 11:11:24.008662+0800 WebDriverAgentRunner-Runner[884:444124] Built at Nov 14 2019 19:03:14
2019-11-19 11:11:24.023604+0800 WebDriverAgentRunner-Runner[884:444124] ServerURLHere->http://10.2.13.199:8100<-ServerURLHere
2019-11-19 11:12:17.450194+0800 WebDriverAgentRunner-Runner[884:444124] +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
2019-11-19 11:12:17.499308+0800 WebDriverAgentRunner-Runner[884:444124] +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
2019-11-19 11:12:51.933443+0800 WebDriverAgentRunner-Runner[884:444124] +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
2019-11-19 11:12:51.966786+0800 WebDriverAgentRunner-Runner[884:444124] +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
2019-11-19 11:12:53.185503+0800 WebDriverAgentRunner-Runner[884:444124] +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130
2019-11-19 11:12:53.206650+0800 WebDriverAgentRunner-Runner[884:444124] +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class 0x1002cc130