簡體   English   中英

無法在 iPhone(實時設備)14.1 上安裝 WebDriverAgentRunner

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

Appium 版本:17.1.1-1

Xcode 版本:11.3

真機操作系統:14.1

我正在嘗試通過運行以下命令在運行於 OS 14.1 的 iPhone 上安裝WebDriverAgentRunner

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,從那時起我就面臨這個問題。

Appium 僅從1.18版開始正式支持 iOS 14,但根據發行說明,我將安裝最新的 1.18.3 以包含最近的修復。 通常新的 iOS 版本需要 Appium 方面的修復,所以我建議查看 Appium 版本的發行說明。

您也最好將 XCode 更新到 v12,因為 Appium 通常使用 XCode 12 + iOS 14 組合進行測試。

在查看堆棧跟蹤時,可能是設備問題,您需要進行硬重置

我在 xcode 11.6 和 iOS 14.2 上遇到了同樣的問題。

最后能夠通過將 xcode 升級到 12.1 並包含 iOS 14.2 的設備支持文件來解決它

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM