14

我正在使用 Xcode 8 Beta (8S128d) 测试 Swift 3,这导致我的 Carthage 构建的库与源代码库不兼容。

Module file was created by an older version of the compiler; rebuild 'SwiftValidator' and try again.

如何配置 Carthage 以便carthage update使用 Beta 编译器而不是标准编译器?

4

1 回答 1

22

我将 Beta 版移至 /Applications。

sudo xcode-select -s /Applications/Xcode-beta.app/将要使用的 Xcode 设置为 beta。

carthage update --platform iOS --no-use-binaries为 iOS 构建库并阻止 Carthage 下载现有的(但不兼容的)预编译二进制文件。

于 2016-06-17T08:48:22.393 回答