Xcode 11.2.1 错误 - Swift 5.1 编译器无法导入使用 Swift 5.1 编译的模块

Xcode 11.2.1 Error - Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler

更新到 Xcode 11.2.1 后,我无法导入 AudioKit 而不会出现此错误: "Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler"。 我已经对 "Build libraries for distribution" 说是,但仍然遇到同样的错误。有没有办法解决这个错误?谢谢!

要正确解决此问题,您必须等待 AudioKit 推出仅用了几天的更新版本。

如果您使用 Carthage 导入 AudioKit,请尝试 carthage update --no-use-binaries

库(不是应用程序)需要设置构建设置 "Build libraries for distribution" 以便它导出必要的接口文件以启用跨不同 Swift 版本的链接。