我如何使用 Xcode 的最新测试版编译带有 Carthage 的库?

How can I compile a library with Carthage using the latest beta of Xcode?

我正在使用 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 编译器而不是标准编译器?

我将 Beta 移到了 /Applications。

sudo xcode-select -s /Applications/Xcode-beta.app/ 设置要用于测试版的 Xcode。

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