Xcode 10 fails my tests in simulator without any information as to the failure

Gavin picture Gavin · Sep 19, 2018 · Viewed 7.9k times · Source

Since upgrading to Xcode 10 my tests (which before the upgrade passed) are no longer being run as far as I can tell. The build succeeds, then the tests fail, but there is no report to say why.

Originally my target OS was 10.3, but I noticed a greyed out iOS11 in the settings, I have since reverted this to 10.3 with no change.

I have restarted my machine and this doesn't seemed to have helped.

Any insight would be helpful.

I do note that this is the inverse of the problem reported here

Thanks

Answer

JMGM picture JMGM · Sep 28, 2018

I had the same problem than you and I've found a solution.

In Xcode go to:

Xcode > File > Workspace Settings...

or

Xcode > File > Project Settings...

Change Build System (in shared workspace settings and in per-user workspace settings) from New Build System (default) to Legacy Build System.

Xcode build system

I hope this will help somebody in the future :)