【发布时间】:2021-01-04 10:31:31
【问题描述】:
让我们从现有的问题开始,
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
Module compiled with Swift 5.1 cannot be imported by the Swift 5.0 compiler
Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler
而且,现在使用 XCode 12(12A7209)
使用 Swift 5.2.4 编译的模块不能被 Swift 5.3 导入 编译器
框架是在较低版本的 Swift (Swift 5.2.4) 中编译的。但是,它与 XCode 12 beta 完美配合。
已尝试的解决方案:
- 将
Build Libraries for Distribution设置为Yes - Shipping Binary Frameworks With Swift 5.0
重点是二进制框架的Swift ABI稳定性以及如何在不同的swift版本中实现它。
请指教。提前谢谢!
【问题讨论】:
-
预建框架的
.swiftmodule文件夹是否包含.swiftinterface文件? -
@Eugene Dudnyk 是的。
标签: ios swift xcode frameworks xcode12