Surendra Patidar
Surendra Patidar

Reputation: 191

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. But XCode always reports an errorenter image description here

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
  5. Restart the mac

Is anyone is also having such issue? Please help.

Upvotes: 2

Views: 1327

Answers (3)

Mahesh Nallabothula
Mahesh Nallabothula

Reputation: 99

I faced the same problem.Then i followed the below steps.

1.clean xcode

2.delete derived data

3.switch off and on iphone.

4.Build & Test it.

It worked for me.

Upvotes: 2

franiis
franiis

Reputation: 1376

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). It should clear iPhone RAM.

Upvotes: 1

Surendra Patidar
Surendra Patidar

Reputation: 191

Restarting the device helped me.

Upvotes: 9

Related Questions