[英]Running XCUITest on device gives “Too many instance of this service are already running”
I have a UI test suite that I am trying to run on device. 我有一个UI测试套件,我试图在设备上运行。 But XCode always reports an error
但XCode总是报告错误
Things I have already tried: 我已经尝试过的事情:
Is anyone is also having such issue? 有人也有这样的问题吗? Please help.
请帮忙。
重启设备对我有所帮助。
I faced the same problem.Then i followed the below steps. 我遇到了同样的问题。然后我按照以下步骤进行操作。
1.clean xcode 1.clean xcode
2.delete derived data 2.删除派生数据
3.switch off and on iphone. 3.关闭和开启iphone。
4.Build & Test it. 4.建立并测试它。
It worked for me. 它对我有用。
I had the same problem and I have a little faster solution: 我有同样的问题,我有一个更快的解决方案:
Hold power button till shutdown bar appears, then hold main front button (approx. 10s - till shutdown bar disappears). 按住电源按钮直到出现关机条,然后按住主前按钮(大约10秒 - 直到关机条消失)。 It should clear iPhone RAM.
它应该清除iPhone RAM。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.