【问题标题】:Xamarin.UITest DeviceAgentException: Failed to install DeviceAgentXamarin.UITest DeviceAgentException:无法安装 DeviceAgent
【发布时间】:2017-03-25 01:38:33
【问题描述】:

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

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

设置:Calabash.XDB.Core.Exceptions.DeviceAgentException:无法安装 DeviceAgent:ApplicationName='/var/folders/5m/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.app',currentDirectory所= '',本机错误=无法找到指定的文件

----> 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.app', CurrentDirectory='', Native error=找不到指定的文件

【问题讨论】:

    标签: xamarin xamarin.ios xamarin-test-cloud xamarin.uitest


    【解决方案1】:

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

    仅供参考:UITest 团队已经意识到这一点,他们在 2.0.1 版中进行了修复。

    【讨论】:

    • 刚刚发生在我的 v2.0.8 上。感谢您的解决方法。删除 xdb 文件夹修复它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-25
    • 2021-07-26
    • 2020-10-12
    • 2023-01-30
    • 2014-01-08
    • 2011-10-17
    • 2018-06-04
    相关资源
    最近更新 更多