我认为这发生在最近的 XCode 更新期间。我尝试过清洁和重建,但无济于事......
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)'
最佳答案
点击文件,打开右侧的检查器,并确保该文件包含在测试目标中。
关于ios - 由于某些 Swift 版本问题,无法构建模块 XCTest?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64027309/