Xamarin.UITest DeviceAgentException:无法安装 DeviceAgent [英] Xamarin.UITest DeviceAgentException: Failed to install DeviceAgent

查看:21
本文介绍了Xamarin.UITest DeviceAgentException:无法安装 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.

设置:Calabash.XDB.Core.Exceptions.DeviceAgentException:无法安装DeviceAgent:ApplicationName='/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/930Manager4ee30000000000000000000000000000000000000000000000000000000000= '安装-d fcbb5006c892e39f1f675a3f6804ce3688c3b8d1 -a/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/ipa/DeviceAgent-Runner.app',currentDirectory所= '',本机错误=无法找到指定的文件

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:应用程序名= '/变种/文件夹/5米/3712cp7j2k928k6z3fgszfyw0000gp/T/XDB/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/bin中/iOSDeviceManager',命令='安装-d fcbb5006c892e39f1f675a3f6804ce3688c3b8d1-a/var/folders/5m/3712cp7j2k928k6z3fgszfyw0000gp/T/xdb/DeviceAgent.iOS.Dependencies/93c12f73043a2d14eea9d417ab080eb4/ipa/DeviceAgent-Runner 错误,CurrentAgent-Runner='Native 错误,CurrentAgent-Runner.

----> 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆