Xcode fails to import module every second time when running tests

Viewed 239

Every second time I try to run tests in my project, Xcode 11.6 fails to load a module. All I get is a generic SIGABRT Error with a message:

error: module importing failed: invalid pathname
dyld: could not load inserted library '<path>/Frameworks/libXCTestBundleInject.dylib' because image not found

This wouldn't bother me so much if it wasn't for the fact that the crash happens exactly every second time.

Did anyone have a similar problem?

0 Answers
Related