每次我运行我的Xamarin。iOS UITest,我收到一个错误:
System.Exception : Unable to contact test backend running in app. A common cause is that the app is not properly linked with Calabash. Please verify that it includes the Calabash component.
但我不想连接到任何测试后端——我想在我的iPhone模拟器(I)上本地运行它
在Mac上)。我创建了一个基本的Xamarin项目,添加了一个UITest项目,并且能够毫无问题地运行Android。我确实安装了Xamarin。TestCloud。代理程序包,并包括
#if ENABLE_TEST_CLOUD
AppDelegate中的块。cs(以防本地测试需要它),但我无法让它在本地运行。
.StartApp()
)。我还收到Mac警报“是否希望应用程序“DeviceAgent Runner.app”接受传入的网络连接?”我的回答是允许的,因为为什么不允许。
我很困惑。。。
谢谢
编辑:这是我的应用程序
ConfigureApp
代码:
return ConfigureApp
.iOS
.Debug()
.AppBundle ("../../../Kroe761Test.iOS/bin/iPhoneSimulator/Debug/device-builds/iphone 11-13.5/kroe761.iOS.app")
.DeviceIdentifier("D68D731A-775F-4BF1-8EF6-13F3FEDD00CF") // iphone 11 pro
.StartApp();