【发布时间】:2019-02-14 09:17:25
【问题描述】:
由于在 iOS 模拟器上运行 Xamarin.UITest 时遇到问题,我想尝试在物理设备上运行它。我可以从设备上的 Visual Studio 正确运行应用程序,但运行 UITest 失败。不幸的是,我还没有在网上找到有关该错误的信息。
SetUp : System.Exception : Unable to start portforwarding: ** Message: Probing for device(s)
** Message: Device found: cd70749db00bbf8db8c92d6214a5028ff3b9584d
** (process:35402): CRITICAL **: Unable to claim server port 27753: Error binding to address: Address already in use
我在 Mac 上重新启动了应用程序和 Visual Studio。设备已为 UI 自动化激活。
【问题讨论】:
-
我通过
return ConfigureApp.iOS.InstalledApp("{appname}").StartApp();启动应用程序
标签: xamarin.ios visual-studio-mac xamarin.uitest