简体   繁体   English

无法在 iPhone(实时设备)14.1 上安装 WebDriverAgentRunner

[英]Unable to install WebDriverAgentRunner on iPhone(real time device) 14.1

Appium version :17.1.1-1 Appium 版本:17.1.1-1

Xcode version : 11.3 Xcode 版本:11.3

Real device OS :14.1真机操作系统:14.1

I am trying to install the WebDriverAgentRunner on my iPhone which is at OS 14.1 by running the command我正在尝试通过运行以下命令在运行于 OS 14.1 的 iPhone 上安装WebDriverAgentRunner

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

Getting the below error得到以下错误

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.)

I tried to restart my device, Xcode, Appium but nothing worked.我试图重新启动我的设备、Xcode、Appium,但没有任何效果。 I had recently updated my phone from 14.0.1 to 14.1 and since then I am facing this issue.我最近将手机从 14.0.1 更新到 14.1,从那时起我就面临这个问题。

Appium started official support for iOS 14 only since release 1.18 , but based on release notes I would install the latest 1.18.3 to include recent fixes. Appium 仅从1.18版开始正式支持 iOS 14,但根据发行说明,我将安装最新的 1.18.3 以包含最近的修复。 Usually new iOS release requires fixes on Appium side, so I suggest checking release notes for Appium release.通常新的 iOS 版本需要 Appium 方面的修复,所以我建议查看 Appium 版本的发行说明。

You also better update XCode to v12, since Appium is usually tested with the combination XCode 12 + iOS 14.您也最好将 XCode 更新到 v12,因为 Appium 通常使用 XCode 12 + iOS 14 组合进行测试。

While looking into the stacktrace, it might be device issue and you need to do a hard reset在查看堆栈跟踪时,可能是设备问题,您需要进行硬重置

I was having the same issue with xcode 11.6 and iOS 14.2.我在 xcode 11.6 和 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最后能够通过将 xcode 升级到 12.1 并包含 iOS 14.2 的设备支持文件来解决它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM