I had same issue with Carthage. However while looking more closely at console I’ve spotted that Carthage instead of building RxSwift just downloaded pre-built binaries,
*** Downloading RxSwift.framework binary at "Zürich"
that in turn contribute to IRGen error. So forcing Carthage to build framework instead of downloading binary worked.
carthage update --platform iOS --no-use-binaries