[英]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,從那時起我就面臨這個問題。
我在 xcode 11.6 和 iOS 14.2 上遇到了同樣的問題。
最后能夠通過將 xcode 升級到 12.1 並包含 iOS 14.2 的設備支持文件來解決它
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.