Adam Johns
Adam Johns

Reputation: 36333

Xcode failed to run tests

When running unit tests in Xcode I get the following console output:

Failed to run tests: Timeout out trying to establish connection to IDE.test

Why don't my tests run, and how can I resolve this issue?

Upvotes: 1

Views: 860

Answers (2)

rpstw
rpstw

Reputation: 1712

In my case it seems XCTest is waiting for some kind of expectation that never fulfilled:

 <XCTWaiter: 0x1c4204a80, state: XCTWaiterStateFailed> reporting timed out failure with Transport for IDE session acquired

I guess it's related to Xcode 10 beta.Anyway, restart everything solved the problem.

  • Clean Project
  • Delete test host app
  • Restart computer
  • Restart iPhone

Upvotes: 0

Adam Johns
Adam Johns

Reputation: 36333

I had to go to Xcode > Preferences > Locations and change back Command Line Tools to the correct version of Xcode. I had previously changed this value to do something else and forgot to change it back.

Upvotes: 1

Related Questions