Reputation: 128
I just updated to Xcode 9 last week, and I've been looking for a way to get around this error:
Module compiled with Swift 3.1 cannot be imported in Swift 4.0
Each time a new version of Xcode is released that includes a new version of Swift, I have to wait for the RealmSwift project to be updated in order to build and run my project. I am aware that this has to do with Swift's ABI stability, but I also see others who seem to know how to get around this until a compatible version of Realm comes out. Currently, I am running 2.8.0, which was the current release as of last night. My dependency manager of choice is Carthage, but similar questions usually involve CocoaPods, which does not help me very much.
Can anyone offer some clear instructions for unfamiliar ones like me so I can keep working on my project now and when future versions come out? Thank you.
Upvotes: 1
Views: 639
Reputation: 8138
When using beta versions of Xcode which there are not prebuilt binaries for you need to pass --no-use-binaries
to carthage bootstrap
so that Carthage builds all of the dependencies from source.
Upvotes: 1