samedi 5 décembre 2020

Xcode 11.7 & 12.2 : Test runner never began executing tests after launching

I'm unable to run any unit tests on my machine with Xcode 11.7 and Xcode 12.2. UITests run fine however. I am running one, simple unit test that I got from Hacking with Swift.

It says testing in the top bar, it just hangs there for a while and none of the code gets executed, and eventually it just stops. Nothing printed to the logs and breakpoints don't get activated in the tests either

When the tests stop, I see this error

System: Test runner never began executing tests after launching Bootstrap Hang.spindump

mac os: Catalina 10.15.7 Macbook pro (15 inch, 2018)

I've tried restarting the simulator, cleaning the build folder, quitting xcode and starting it again, uninstalling xcode and reinstalling multiple times. The only thing I haven't done yet is factory resetting the mac, which is definitely my last resort.

Any help is appreciated on how to get my unit tests to successfully run on my machine again.

1 commentaire: