Carthage + Quick framework + Swift 2 = "error: module file was created by an older version of the compiler; rebuild 'Quick' and try again"
Carthage + Quick framework + Swift 2 = "error: module file was created by an older version of the compiler; rebuild 'Quick' and try again"
我正在使用 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 个版本。我链接了库,当我尝试 运行 单元测试时,我收到了注意到的错误。
这里有一个类似的问题,但这似乎不是我的问题
我已经清理了我的 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。
我正在使用 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 个版本。我链接了库,当我尝试 运行 单元测试时,我收到了注意到的错误。
这里有一个类似的问题,但这似乎不是我的问题
我已经清理了我的 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。