新手区 WDA test failed : One of the two will be used. Which one is undefined

Jacc · 2018年11月20日 · 最后由 shenjianyun 回复于 2019年07月19日 · 4002 次阅读

今天换了台电脑,wda test 突然卡住了,然后就 test failed,哪位兄弟来帮忙看一下
osx: 10.14.1
ios : 10.3.3
xcode: 10.1

git clone https://github.com/appium/WebDriverAgent.git

日志:

WebDriverAgentRunner-Runner[29864:5602635] Running tests...
objc[29864]: Class GCDAsyncSocketPreBuffer is implemented in both /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x101f88578) and /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x101ef5330). One of the two will be used. Which one is undefined.
objc[29864]: Class GCDAsyncReadPacket is implemented in both /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x101f885c8) and /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x101ef5380). One of the two will be used. Which one is undefined.
objc[29864]: Class GCDAsyncWritePacket is implemented in both /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x101f88618) and /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x101ef53d0). One of the two will be used. Which one is undefined.
objc[29864]: Class GCDAsyncSpecialPacket is implemented in both /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x101f88668) and /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x101ef5420). One of the two will be used. Which one is undefined.
objc[29864]: Class GCDAsyncSocket is implemented in both /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket (0x101f886b8) and /private/var/containers/Bundle/Application/93D464E7-3E59-4665-9B40-C56074E25166/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer (0x101ef5470). One of the two will be used. Which one is undefined.
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 7 条回复 时间 点赞
Jacc #1 · 2018年11月21日 Author

用之前电脑试了一下,也会有这种打印,但不会卡住;换了一个 12.1 的手机在新电脑上是可以的,又重新换回 10.3.3,也不会卡住了,一脸懵逼😂

提示里面就有答案啊

PlugIns/WebDriverAgentRunner.xctest/Frameworks/CocoaAsyncSocket.framework/CocoaAsyncSocket
PlugIns/WebDriverAgentRunner.xctest/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer

这两个地方都实现了GCDAsyncSocketPreBuffer这个,xcode 就随便选了一个,这个错误并不影响实际运行

Jacc #4 · 2018年11月21日 Author
arrow 回复

是不影响,以前也有这种日志,但是不会卡住,这次卡住了直接

请问楼主这个问题是咋解决的

Jacc #6 · 2018年12月12日 Author
Wang 回复

你 ios 和 xcode 是什么版本,可以换一个 ios 版本试一下,比如 ios12

wtnhz ******************* 中提及了此贴 12月17日 18:13

我也遇到了这个问题,昨天刚把 iOS 的环境都弄好,昨天 build 的时候没有这个问题,打开 appium inspector 也没问题,今天打开 appium inspector 的时候又报错 xcode build filed 65,75 啥的,然后打开 xcode 重新 build 的时候就遇见这个错了,然后 Xcode 里重新清了下缓存再 build 的时候虽然还有这个,但不影响了,手机上可以成功访问状态了

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册