Open shalinipk opened 5 years ago
I am experiencing the same thing. I tried removing RxSwift package to from Carthage to have it managed by the new Xcode 11 Swift Package Manager but same result. I'd like to continue to have this package managed by Carthage if possible.
Describe the bug Getting compilation errors while trying to build RxBluetoothKit with Swift 5.1 error: module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler:
To Reproduce Steps to reproduce the behavior: Cleared XCode DerivedData, set command line tools to XCode 11.0, ran "rm -rf ~/Library/Caches/org.carthage.*"
My cartfile has the following: github "ReactiveX/RxSwift" "5.0.0" github "Polidea/RxBluetoothKit" "5.2.0"
along with other stuff such as AlamoFire, Reachability, SnapKit etc
If I comment out RxBluetoothKit on cartfile, "carthage update --platform iOS --no-use-binaries" goes through just fine. However if I include RxBluetoothKit, I see this "error: module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler:"
I already have RxSwift rebuilt using Swift 5.1, "swift --version" shows "Apple Swift version 5.1"
I think RxBluetoothKit picks up its own version of an older RxSwift.
Is there a workaround ? I can't use an older version of XCode because of an XCode bug https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_release_notes - #47598583
Expected behavior RxBluetoothKit compiles successfully on "carthage update --platform iOS --no-use-binaries" with Swift 5.1/XCode 11
Environment: