gpt4 book ai didi

swift - Carthage + Quick 框架 + Swift 2 = "error: module file was created by an older version of the compiler; rebuild ' Quick',然后重试”

转载 作者:行者123 更新时间:2023-11-30 10:12:46 25 4
gpt4 key购买 nike

我将 Xcode 7 beta 5(这是当前安装的唯一 xcode)与 Swift 2 一起使用,当我尝试使用 Quick 运行单元测试时,出现以下错误:

error: module file was created by an older version of the compiler; rebuild 'Quick' and try again

我正在使用 Carthage (0.8.0) 来管理我的依赖项。我的 Cartfile.private 有:

github "Quick/Quick" ~> 0.5.0
github "Quick/Nimble" "v2.0.0-rc.2"

据我所知,这些是这些库的 Swift 2 版本。我链接了库,当我尝试运行单元测试时,我收到了指出的错误。

这里有一个类似的问题,但这似乎不是我的问题 Realm: Module was created by an older version of compiler and could not build objective-c module

我已经清理了 DerivedData 和 Carthage/Build 文件夹,但仍然没有成功。

如何使用 Swift 2 和 Quick 运行单元测试?

最佳答案

如果您从其他测试版更新,可能与以下问题有关:https://github.com/neonichu/xcode-install/issues/48

xcode-install uses ditto to install Xcode, which merges files from the source into existing directories at the destination path.

If a new (beta) version of Xcode doesn't contain files which were present in the previous version, the old files will still be there after installing the update.

尝试卸载并重新安装 Xcode。

关于swift - Carthage + Quick 框架 + Swift 2 = "error: module file was created by an older version of the compiler; rebuild ' Quick',然后重试”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32042497/

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