ios - 由于某些 Swift 版本问题,无法构建模块 XCTest?

标签 ios swift xcode

我认为这发生在最近的 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/

相关文章:

ios - Swift 中的结构值类型

swift - Swift 可选链是从左到右延迟计算的吗?

swift - xcode 8.3.3 是否运行 swift 3.2

c# - 单点触控 : About value types as Dictionary Keys

ios - 从 swift 三元运算符返回引用

ios - 快速查找 iPhone 的 compass 方向

swift - 使用 AutoLayout 用 UILabel 屏蔽 UIView

ios - 如何从 xcode 6.4 提交代码到 SVN?

ios - 在 Photoshop 中保存图像以进行应用程序开发

ios - 从 swift 2.3 迁移到 swift 3 时出现问题