我正在尝试对我的旧项目进行一些 UI 测试。
我创建了一个 UI 测试目标并在测试 Swift 文件的顶部添加了 @testable import MyOlderProject
。
我收到以下错误消息:
Module file was created by an older version of the compiler; rebuild 'MyOlderProject' and try again
看起来它与 MyOlderProject.swiftmodule/arm.swiftmodule 有关。
我做错了什么?
最佳答案
您是否尝试过升级到 Xcode 7 GM 并使用最新的 swift 编译器构建您的应用程序? 这可能是从这里发出的警告信号,
"To be safe, all components of your app should be built with the same version of Xcode and the Swift compiler to ensure that they work together."
关于ios - 尝试在 Xcode 上运行 UI 测试时出现 "Module file was created by an older version of the compiler"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32626309/