XCode Unit Tests Never Complete; Just Spin Forever

Hi!

Xcode 14.3, Swift project, macOS: 13.3.1 (a)

I've written a few unit tests for my project after following online instructions on how to add them to existing XCode project.

When I run the tests (both as a whole and individually), the tests build fine but never complete. Only when I hit the stop button do I get an output report that says everything OK. I've put knowingly false assertions into my tests so they should fail if they are properly loaded.

How do I go about troubleshooting this problem?

Thanks,

Bobby

Had the same issue, it was such in building and never executed the test cases. Had to restart the simulator , Device -> Restart.

I'm having the same issue, i already uninstalled my xcode, change a bunch of things and my test keeps running forever.

XCode Unit Tests Never Complete; Just Spin Forever
 
 
Q