【发布时间】:2018-09-06 13:32:10
【问题描述】:
在 2019 年初或 2018 年底,Apple 将发布带有 Swift 5 的 Xcode 10.x。在我的项目中,我使用了一个用 Swift 3 编写并被作者放弃的 Cocoa pod。
我想知道我是否必须更换吊舱或升级,或者我可以让它们保持原样。如果 Swift 5 将构建用 Swift 3 编写的目标,我可以继续使用用 Swift 3 编写的 pod,如果不是,我如何升级/更改它。
问题: Swift 5 是否构建用 Swift 4 或 Swift 3 编写的目标?
【问题讨论】:
-
Swift 5 将带有 Swift 4 兼容模式,它应该保持与 Swift 4 代码的源代码兼容性。它will not however, ship with Swift 3 compatibility mode.