Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode10

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

like image 300
Gavin Avatar asked Sep 19 '18 11:09

Gavin


4 Answers

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 :)

like image 50
JMGM Avatar answered Jan 03 '23 04:01

JMGM


Deleting the app, restarting both Xcode and device worked for me.

like image 38
Gustavo Vollbrecht Avatar answered Jan 03 '23 05:01

Gustavo Vollbrecht


This answer seems to have worked much like the poster saw the deployment targets seemed off for the test targets.

The test seem to run fine in an XR simulator, which should be iOS12.

like image 22
Gavin Avatar answered Jan 03 '23 04:01

Gavin


Clean Build Folder helps to me: In Xcode go to Product -> Clean Build Folder

like image 34
Max Kotov Avatar answered Jan 03 '23 05:01

Max Kotov