AliSoftware/Reusable

Incompatible Swift version

bitomule opened this issue · 1 comments

I'm getting this error running a Carthage update:

Skipped installing Reusable.framework binary due to the error

Incompatible Swift version - framework was built with swiftlang-800.0.63 clang-800.0.42.1 and the local version is swiftlang-802.0.53 clang-802.0.42.

Any idea?

Carthage is flawed by design because it downloads the precompiled binaries of libraries, but Swift is still not ABI-stable so the binaries are not compatible between different versions of Swift and the Swift compiler. Apple explicitly don't recommend relying on precompiled versions of 3rd party frameworks for that reason until Swift is ABI-stable (but Carthage disregarded this recommendation have the issue you have)

This is an issue with Carthage itself, not with Reusable. It can be workaround by using --no-use-binaries when invoking Carthage, to force Carthage to rebuild the frameworks/libraries with the current Swift compiler you're using in your project, which takes longer but is the only solution I know so far. For more info see the GitHub issues (and docs) of Carthage itself.