'Could not find module 'RxSwift'

I imported BitcoinKit.swift which worked fine but get now the error:

Could not find module 'RxSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator

Podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '15.2'

target 'BTCTransaction5' do

  use_frameworks!

  pod 'BitcoinKit.swift'

end

System

macOS Big Sur

M1

Thanks for Help!



Solution 1:[1]

I fixed it by excluding some architectures in the Build Settings.

Solution 2:[2]

Did you try to update the pod with this?

arch -x86_64 pod update   

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SurpriseMF
Solution 2 km796