gpt4 book ai didi

ios - 尝试在 Xcode 上运行 UI 测试时出现 "Module file was created by an older version of the compiler"消息

转载 作者:搜寻专家 更新时间:2023-11-01 05:39:19 25 4
gpt4 key购买 nike

我正在尝试对我的旧项目进行一些 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."

https://developer.apple.com/swift/blog/?id=2

关于ios - 尝试在 Xcode 上运行 UI 测试时出现 "Module file was created by an older version of the compiler"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32626309/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com