RxSwift icon indicating copy to clipboard operation
RxSwift copied to clipboard

I can't compile it when I use Carthage

Open MorningStarJ opened this issue 8 years ago • 7 comments

add 'github "ReactiveX/RxSwift" ~> 4.0' to Cartfile then 'carthage update'

the temrinal said *** Skipped installing RxSwift.framework binary due to the error: "Incompatible Swift version - framework was built with 4.0 (swiftlang-900.0.65 clang-900.0.37) and the local version is 4.1 (swiftlang-902.0.48 clang-902.0.37.1)."

my carthage version: 0.29.0

MorningStarJ avatar Apr 03 '18 09:04 MorningStarJ

I'm experiencing the same issue.

EDIT: It does however seem to work when running Carthage with --no-use-binaries. Could it be that the 4.1.2 binary needs to be re-compiled with the new versions of Xcode and Swift?

(Xcode 9.3, Swift 4.1, Carthage 0.29.0)

marols avatar Apr 03 '18 12:04 marols

Use carthage update RxSwift --platform iOS --no-use-binaries to work around

soleo avatar Apr 03 '18 23:04 soleo

@soleo That will check out RxSwift at "4.0.0-rc.0" if i use carthage update RxSwift --platform iOS --no-use-binaries

MorningStarJ avatar Apr 04 '18 03:04 MorningStarJ

Hi @MorningStarJ ,

The command @soleo provided carthage update RxSwift --platform iOS --no-use-binaries should work as far as I can tell. If it doesn't, then this is Carthage issue, and this is not a proper repo.

We'll publish new version with new binary soon.

kzaher avatar Apr 04 '18 07:04 kzaher

@kzaher Does this mean that the real problem is the binary needs to be recompiled with a newer version of Swift?

marols avatar Apr 04 '18 08:04 marols

yes, that's what the message says

*** Skipped installing RxSwift.framework binary due to the error: "Incompatible Swift version - framework was built with 4.0 (swiftlang-900.0.65 clang-900.0.37) and the local version is 4.1 (swiftlang-902.0.48 clang-902.0.37.1)."

kzaher avatar Apr 04 '18 08:04 kzaher

Okay, thanks

marols avatar Apr 04 '18 08:04 marols