安装 Xcode10.2.1 但仍然出现错误 'Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler'

Install Xcode10.2.1 but still got the error 'Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler'

我在使用 Xcode11.2.

时遇到错误

Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler

由于无法重新编译框架,我将Xcode的版本降级为10.2.1来修复问题,但还是出现同样的错误如上所述。

我也尝试过使用工具链,但它显示不支持的配置如下:

The Swift standard library from the toolchain cannot be used on devices.

Select a macOS or simulator run destination instead, or use a different toolchain that only provides the compiler.

如何正确导入框架?

顺便说一句,有谁知道为什么使用 Xcode 10.2.1 时模拟器和设备不显示?我错过了任何步骤吗?

只需select降低部署目标,您就可以显示模拟器