This has been happening with xcode 9 and xcode10 now, using Quick and XCTest for unit tests they will run all the way fine but throw an exception/crash at the end. If I continue the tests will succeed.
I've spent so many hours trying to figure this out with no luck. I don't see anything helpful in the logs or stack trace. It's a big code base with 2,000+ tests so it's hard to figure out if it's just one causing it. I've tried:
- Removing all files from test target, adding 1 by 1, at some point it breaks again but moving back to previous OK version now starts to fail.
- deleting all async tests from both Quick and XCTest
- Deleting all XCTEst cases, to see if it's an issue of both in 1 target.