Xamarin.UITest DeviceAgentException:无法安装DeviceAgent [英] Xamarin.UITest DeviceAgentException: Failed to install DeviceAgent
问题描述
如何解决在iOS设备上运行Xamarin.UITest时出现的错误?
How do I solve this error that occurs when running Xamarin.UITest on an iOS Device?
它在iOS模拟器和物理iOS设备上均会发生.
It happens on both the iOS Simulator and a physical iOS device.
SetUp:Calabash.XDB.Core.Exceptions.DeviceAgentException:无法安装DeviceAgent:ApplicationName ='/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9bindManager ='install -d fcbb5006c892e39f1f675a3f6804ce3688c3b8d1 -a/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9a-Device/Direct'文件
SetUp : Calabash.XDB.Core.Exceptions.DeviceAgentException : Failed to install DeviceAgent: ApplicationName='/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/bin/iOSDeviceManager', CommandLine='install -d fcbb5006c892e39f1f675a3f6804ce3688c3b8d1 -a /var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/ipa/DeviceAgent-Runner.app', CurrentDirectory='', Native error= Cannot find the specified file
----> System.ComponentModel.Win32Exception:ApplicationName ='/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/bin/iOSDeviceManagerc3f3f3c3f3c3f3e3f3df1f3e3f3df1f6e3f3df1e6df1f6bf1f6e6ef6f6bf1f6b3c6f6ef1c6fc3fc1fc3fc3fc3fc1f1fcbfffbffffffffffffffbfffbfbfbfbfffbfffbfffbfffbfffbffffbfffbfffbfffbfffffffffffffffffffffff才动类-a/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/ipa/DeviceAgent-Runner.app',CurrentDirectory ='',本机错误=找不到指定的文件
----> System.ComponentModel.Win32Exception : ApplicationName='/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/bin/iOSDeviceManager', CommandLine='install -d fcbb5006c892e39f1f675a3f6804ce3688c3b8d1 -a /var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/ipa/DeviceAgent-Runner.app', CurrentDirectory='', Native error= Cannot find the specified file
推荐答案
我之前也曾遇到过此问题,这是由该文件夹中的损坏文件引起的.导航到该目录: '/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/' 并删除文件夹"xdb".这样可以解决问题.
I had this issue happen to me before as well, it was caused by a corrupt file in that folder. Navigate to that directory: '/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/' and delete the folder 'xdb'. This should resolve the issue.
仅供参考:UITest团队已经意识到了这一点,他们已经在2.0.1版中进行了修复.
FYI: The UITest team is aware of this and they have a fix in version 2.0.1.
这篇关于Xamarin.UITest DeviceAgentException:无法安装DeviceAgent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!