Realm-cocoa: Module compiled with Swift 4.0 cannot be imported in Swift 4.0.2

Created on 1 Nov 2017  路  8Comments  路  Source: realm/realm-cocoa

install realm with carthage, in Xcode 9.1

Most helpful comment

carthage update --platform iOS --no-use-binaries

All 8 comments

Same issue here after updating to Xcode 9.1, Installed Realm through Dynamic Framework.

Did you use Carthage's --no-use-binaries options to build from source?

I tested with my own project, using --no-use-binaries with Carthage still works fine. It will build from source using the Swift 4.0.2 compiler. It takes a while, but it works.

If you don't want to do that, you'll need to patient and wait for the Realm team to update the prebuilt binaries.

I guess we need to deal with this until Swift ABI becomes stable. I'll wait for Realm team to update the binaries. Thanks.

Unfortunately, yeah.

This is the correct answer. We can only provide one version's prebuilt binary for Carthage, so someone is always going to have to build from source.

carthage update --platform iOS --no-use-binaries

Yeah - have the same issue with Xcode 9.1 - thanks for the info, that I can build it from source

guys, I compiled latest from source code and uploaded here https://github.com/amirpervaiz086/Realm-swift-4.0.2

Was this page helpful?
0 / 5 - 0 ratings