由于我在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自动化。
发布于 2019-02-14 17:51:28
在重启Mac之后,UITest启动了。
发布于 2020-08-11 22:58:36
假设您使用的是iPhone
#if ENABLE_TEST_CLOUD Xamarin.Calabash.Start();#endif
有关参考,请查看微软的文档here。
发布于 2022-02-03 07:55:33
当我尝试在一个真实的iPhone上执行Xamarin.UITests时,同时还有一个iPhone模拟器在运行,我得到了这个错误信息。关闭iPhone模拟器后,不再显示错误。
https://stackoverflow.com/questions/54686850
复制相似问题