I think this occurred during a recent XCode update. I've tried cleaning and rebuilding but to no avail...
Failed to build module 'XCTest' from its module interface;
the compiler that produced it,
'Apple Swift version 5.3 (swiftlang-1200.2.26.4 clang-1200.0.29.4)',
may have used features that aren't supported by this compiler,
'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)'