Is it possible to change Carthage Swift version used to build the frameworks?
I'm trying to migrate my project to swift 3 (on Xcode 8 beta), and the third party libraries are the only thing that stops my project from compiling. While using specific branches for swift 3, Carthage throws errors about the new Swift syntax.
Any help will be appreciated!
Carthage uses the command line tool
xcodebuild
to build the frameworks. The version of Xcode used by the command line system is determined by the value selected by the toolxcode-select
It needs to point to the Developer SDK directory, so you can use
--print-path
to check where it's currently pointing.Then to change it just run
sudo xcode-select --switch <path-to-beta-xcode>/Contents/Developer
There is a bug report on Carthage's GitHub about XCode 8 and broken compatibility. You may want to follow that issue's thread on their repo:
https://github.com/Carthage/Carthage/issues/1440
Another related reported issue in Carthage's repo is: https://github.com/Carthage/Carthage/issues/1445