问题现象:
1、WebdriverAgent 在 Xcode + 真机上 test 正常
2、开启 appium server 后,UI 脚本启动后提示:
[W3C][39m Encountered internal error running command:
Error: Unable to launch WebDriverAgent because of xcodebuild failure:
xcodebuild failed with code 70
解决:
1、先查一下 xcodebuild failed with code 70
解决思路都是:
(1)在 Xcode 上启动WebdriverAgent,再执行
(2)升级 appium
但我本地已经是最新appium 并在真机上testing了。
应该不是一样的问题,可能有其他问题,继续查看日志。
日志里有一行:
2021-06-25 07:58:19:379 [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there.
To change this, use 'showXcodeLog' desired capability
2、尝试增加caps “showXcodeLog”,查看详细Xcode 日志
caps['showXcodeLog']=True
继续执行 UI 脚本,出现新的报错信息了!
[W3C] Command line invocation:
...
[W3C] xcodebuild: error: Unable to find a destination matching the provided destination specifier:
[W3C] {
id:00008222-001E11D90C32223A }
[W3C] The requested device could not be found because no available devices matched the request.
[W3C] Available destinations for the "WebDriv

最低0.47元/天 解锁文章
1400

被折叠的 条评论
为什么被折叠?



