• 已解决,感谢!

  • 已经解决啦!我把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,总算解决了。