无法在iPhone(实时设备)14.1上安装WebDriverAgentRunner [英] Unable to install WebDriverAgentRunner on iPhone(real time device) 14.1

查看:972
本文介绍了无法在iPhone(实时设备)14.1上安装WebDriverAgentRunner的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Appium版本:17.1.1-1

Appium version:17.1.1-1

Xcode版本:11.3

真实设备操作系统:14.1

我试图通过运行命令在操作系统14.1的iPhone上安装 WebDriverAgentRunner

I am trying to install the WebDriverAgentRunner on my iPhone which is at OS 14.1 by running the command

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<device id>' test

出现以下错误

Error Domain=com.apple.dt.xctest.error Code=9 "Unable to connect to test manager on <deviceID>"
UserInfo={NSLocalizedDescription=Unable to connect to test manager on <deviceID>, NSUnderlyingError=0x7fcf78ef6030 
  {Error Domain=XCTMobileDeviceFramework Code=34 "The service is invalid." 
    UserInfo={NSLocalizedDescription=The service is invalid.}}}
2020-11-04 15:01:13.362 xcodebuild[32197:349433] [MT] DTDKRemoteDeviceConnection: 
Failed to start Instruments daemon on device "<deviceID>": 
Error Domain=com.apple.dtdevicekit Code=-402653150 
"An error was encountered while attempting to communicate with this device. (The service is invalid.)

我尝试重新启动设备,Xcode,Appium,但没有任何效果.我最近将手机的版本从14.0.1更新到了14.1,此后我一直面临这个问题.

I tried to restart my device, Xcode, Appium but nothing worked. I had recently updated my phone from 14.0.1 to 14.1 and since then I am facing this issue.

推荐答案

我在xcode 11.6和iOS 14.2上遇到了同样的问题.

I was having the same issue with xcode 11.6 and iOS 14.2.

最终可以通过将xcode升级到12.1并包括iOS 14.2的设备支持文件来解决该问题

Finally was able to resolve it by upgrading xcode to 12.1 and including the device support files for iOS 14.2

这篇关于无法在iPhone(实时设备)14.1上安装WebDriverAgentRunner的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆