I have faced the same error. An actual device works well but the emulator makes problem.
The errors
<unknown>:0: error: unable to load standard library for target 'arm64-apple-ios12.0'
<unknown>:0: error: module compiled with Swift 5.4 cannot be imported by the Swift 5.5.2 compiler:
And I tried to change my swift version(5.5.2 -> 5.4) on Xcode via ToolChain, but it does not work.
Environment
Xcode: 13.2.1 (13C100)
MacBook Pro (MacBook Pro (13-inch, M1, 2020))
Topic:
Programming Languages
SubTopic:
Swift
Tags: