M1芯片的iMac竿奏,Xcode12運行模擬器,然后報錯:
Could not find module 'RxSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
網(wǎng)上找了很多配置這配置那的都沒用泛啸,主要還都一樣的(復制黏貼??)。
解決方法:
1吕粹、通過將下面代碼添加到 Podfile 的末尾
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Needed for building for simulator on M1 Macs
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end
2岗仑、然后在對應的目錄 pod install一下,就可以繼續(xù)使用模擬器了荠雕。
至此,我的這個問題解決了既鞠。希望對你有所幫助