[英]What are all the steps to run a XCUITest on a device?
I can run XCUITests just fine on simulators, but when I try them on my device, the UITest icon is auto-clicked, and it fills the screen, freezes, then execution stops. 我可以在模拟器上很好地运行XCUITests,但是当我在设备上尝试运行XCUITests时,会自动单击UITest图标,它会填满整个屏幕,冻结,然后停止执行。 The bug readout is "Test target GreetrUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted).
错误读出是“测试目标GreetrUITests遇到错误(早期意外退出,操作从未完成引导-不会尝试重新启动)。
Things I have tried: 1. Gone into my phone's settings -> developer -> enable UI Automation. 我尝试过的事情:1.进入手机的设置->开发人员->启用UI自动化。 2. I don't have any cocoapods in my tests, only native XCUITests.
2.我的测试中没有任何cocoapods,只有本地的XCUITests。 3. I have a provisioning profile for my app, I am able to run the app fine.
3.我有我的应用程序的配置文件,可以正常运行该应用程序。
I might need to add a provisioning profile to the UITest but I don't know how to do that. 我可能需要向UITest添加一个配置文件,但是我不知道该怎么做。 I have also seen suggestions having to do with code-signing and paths, but I didn't understand the suggestions well enough to fix this.
我还看到了与代码签名和路径有关的建议,但是我对建议的理解不足以解决此问题。
I appreciate the help. 感谢您的帮助。
It works on my iphone 5s. 它可以在我的iPhone 5s上使用。 I was using an iphone 5. iPhone 5 was released in 2012 which was 3 years before XCUITests were released in 2015 with xcode 7. I have xcode 9.0.
我使用的是iPhone5。iPhone5于2012年发布,比XCUITests于2015年发布xcode 7早了3年。我拥有xcode 9.0。 Perhaps running UITests on iphone 5 is therefore deprecated.
因此,也许不建议在iphone 5上运行UITests。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.