I have a project written in Swift 3.2.2 and compiled using Xcode 9.1
I have a dependency that is built using Carthage with this command:
carthage update --platform iOS
The problem is that Carthage creates a dependency using Swift 4.0 (instead of Swift 3.2.2)
A module compiled with Swift 4.0 cannot be imported into Swift 3.2.2
How do I tell Carthage to create my dependency using Swift 3.2.2 so that it can be used in my project?
I do not want to upgrade my project to Swift 4.0 yet.
Xcode 9.1 supports both Swift 3 and Swift 4. So, how can I say that Carthage uses Swift 3 when compiling dependencies? I don't want to talk to use an earlier version of Xcode (which I no longer have)
source share