Xamarin.UITest DeviceAgentException:无法安装DeviceAgent

Bra*_*ick 4 xamarin.ios xamarin xamarin-test-cloud xamarin.uitest

如何解决在iOS设备上运行Xamarin.UITest时出现的此错误?

它发生在iOS模拟器和物理iOS设备上.

SetUp:Calabash.XDB.Core.Exceptions.DeviceAgentException:无法安装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 =找不到指定的文件

----> 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 =找不到指定的文件

小智 7

我之前也遇到过这个问题,它是由该文件夹中的损坏文件引起的.导航到该目录:'/ var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T /'并删除文件夹'xdb'.这应该解决问题.

仅供参考:UITest团队了解这一点,他们在版本2.0.1中有一个修复.

  • 刚发生在v2.0.8上.谢谢你的解决方法.删除xdb文件夹修复它. (2认同)