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

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

问题描述

Appium 版本:17.1.1-1

Xcode 版本:11.3

真实设备操作系统:14.1

我正在尝试通过运行命令在 OS 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天全站免登陆