Search code examples
xcodecarthage

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


I am testing out Swift 3 with Xcode 8 Beta (8S128d), which leads me to a situation where my Carthage-built libraries are not compatible with the source base.

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

How can I configure Carthage so that carthage update uses the Beta compiler rathe rthan the standard one?


Solution

  • I moved the Beta into /Applications.

    sudo xcode-select -s /Applications/Xcode-beta.app/ sets the Xcode to be used to the beta.

    carthage update --platform iOS --no-use-binaries builds the libraries for iOS and prevents Carthage from downloading existing (yet incompatible) precompiled binaries.