Rxswift: [Xcode 11.3.1] "Could not find module 'RxSwift' for target 'arm64-apple-ios';"

Created on 24 Feb 2020  Β·  6Comments  Β·  Source: ReactiveX/RxSwift

My iOS App Project was no ploblem with RxSwift for 2~3 month untill today's morning,
but My Project have broken since I excuted carthage update once...

I spent half of day, but It haven't solved.

Process & Error

carthage update RxSwift --platform iOS

↓

:warning: "Incompatible Swift version - framework was built with 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2020-02-24 23 14 20

Falling back to building from the source

↓

βœ” Carthage Build is finished.

↓

Build Error on Xcode Project.

❌ Could not find module 'RxSwift' for target 'arm64-apple-ios'; found: i386, i386-apple-watchos-simulator, arm64_32-apple-watchos, armv7k, armv7k-apple-watchos, arm, arm64_32
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2020-02-24 23 15 23


Expected outcome:

No Problem of Xcode Build.

What actually happens:

:warning: "Incompatible Swift version - framework was built with 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."

❌ Could not find module 'RxSwift' for target 'arm64-apple-ios'; found: i386, i386-apple-watchos-simulator, arm64_32-apple-watchos, armv7k, armv7k-apple-watchos, arm, arm64_32

Information

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

5.0.1

Platform/Environment

  • [x] iOS
  • [ ] macOS
  • [ ] tvOS
  • [ ] watchOS
  • [ ] playgrounds

Xcode version:

Version 11.3.1 (11C504)

I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)

  • [ ] yes (which ones)
  • [x] no

Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)

  • [ ] just starting
  • [ ] I have a small code base
  • [x] I have a significant code base
awaiting user input

Most helpful comment

I found the reason of this problem.
I don't know why but Framework Search Path had WatchOS's path.
I removed it, and build error was solved! πŸ‘Œ
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2020-02-28 2 18 29

All 6 comments

And I confirmed 'arm64-apple-ios' module of RxSwift.
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2020-02-24 23 36 50

Hey - I don't know enough about Carthage and this doesn't seem to happen to me. Can you attach a project reproducing the issue?

If you have a PR to solve this, I'd be happy to accept as well.

This is sample project to reproduce the issue.
https://github.com/entotsu/Sample

Your project has a bunch of non-compiling dependency and Realm code, so I can't do much with it. Here's a test I made with Carthage based on the instructions in the Carthage project, including a test target, and everything seems fine:

RxCarthage.zip

Please test and let me know.

@freak4pc Thank you.
I made a simple project of RxSwift with Carthage, and It's no problem too. πŸ‘Œ

I found the reason of this problem.
I don't know why but Framework Search Path had WatchOS's path.
I removed it, and build error was solved! πŸ‘Œ
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2020-02-28 2 18 29

Was this page helpful?
0 / 5 - 0 ratings