Closed johannwerner closed 2 years ago
Firstly, Doesn't seem like an RxSwift issue, to be honest. Second, I just created an empty project with RxSwift on my M1 Pro and it works just fine. Please attach a repro.
Thanks I was able to run it now. Actually the problem was I set the project to "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; and this caused the issue. I remember adding this in the beginning because the app wasn't running and even though it didn't fix this I never removed it.
Short description of the issue:
import swift package manager using main branch. write import code import RxSwift run app on any simulator
Expected outcome:
able to import RxSwift
What actually happens:
could not find module 'RxSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator,
Self contained code example that reproduces the issue:
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
version or commit here
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
Installation method:
I have multiple versions of Xcode installed: (so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge: (this is so we can understand your level of knowledge and formulate the response in an appropriate manner)
The solution would be to change excluded architectures for any ios simulator for debug at least maybe release as well. "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; Related to this issue https://github.com/ReactiveX/RxSwift/issues/2261