Skip to content

Build errors while building RxBluetoothKit with Swift 5.1/XCode 11 beta #351

Open
@shalinipk

Description

@shalinipk

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:

  • Device: [Macbook Pro]
  • OS: [macOS 10.14.6]
  • Library version [RxBluetoothKit 5.2.0]
  • Swift version [5.1]
  • XCode Version 11.0 beta 6 (11M392r)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions