简体   繁体   English

在设备上运行XCUITest会显示“此服务的太多实例已在运行”

[英]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: 我已经尝试过的事情:

  1. Clean and build 清洁和建造
  2. Clean and clear derived data and build 清理和清除派生数据和构建
  3. Uninstall the app from device 从设备卸载应用程序
  4. Restart the XCode 重启XCode
  5. Restart the mac 重启mac

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.

相关问题 此服务的实例已经运行了太多 - Too many instances of this service are already running 为什么XCUITest在Xcode上运行iOS 11.0.1失败 - Why is XCUITest Failing on Xcode running iOS 11.0.1 XCUITest 集在 macOS 和 iOS 上运行 - XCUITest set running on both macOS and iOS 故事板中的视图过多-Xcode运行缓慢 - Too many views in storyboard - Xcode running Slow 检测设备上有多少应用处于运行模式 - Detect how many apps are in running mode on device iOS设备可以发现在同一设备上运行的Bonjour服务吗? - Can an iOS device discover a Bonjour service running on the same device? Xcode,iOS,“停止”(null)“,”“(null)”的实例已经在运行...“ - Xcode, iOS, “Stop ”(null)“, ”An instance of “(null)” is already running…" XCUITest:以协调的方式在两个应用程序之间运行测试 - XCUITest: Running tests across two apps in a coordinated fashion 在后台运行已经运行的NStimer - Running an already running NStimer in Background 为什么在 iOS 真实设备上运行移动 web 测试时出现“[XCUITest] 在超时内无法接收任何数据:5000”错误? - Why am I getting an "[XCUITest] Failed to receive any data within the timeout: 5000" error when running mobile web tests on iOS real device?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM