问题描述
在 2019 年初或 2018 年末,Apple 将发布带有 Swift 5 的 Xcode 10.x.在我的项目中,我使用了一个用 Swift 3 编写并被作者放弃的 Cocoa pod.
In early 2019 or late 2018 Apple will release Xcode 10.x with Swift 5. In my project I use a Cocoa pods which are written in Swift 3 and abandoned by the author.
我想知道我是否必须更换吊舱或升级,或者我可以将它们保持原样.如果 Swift 5 将构建用 Swift 3 编写的目标,我可以继续使用用 Swift 3 编写的 pod,如果没有,我如何升级/更改它.
I would like to know if I have to replace the pods or upgrade or maybe I can leave them as they are. If Swift 5 will build targets written in Swift 3, I can continue to use pods written in Swift 3 as they are, if not, I how to upgrade/change it.
问题:Swift 5 是否构建了用 Swift 4 或 Swift 3 编写的目标?
Question:Does Swift 5 build targets that are written in either Swift 4 or Swift 3?
推荐答案
目前还不清楚 他们能走多远会去.
源稳定性
与 Swift 4 类似,Swift 5 编译器将提供一种源代码兼容模式,以允许使用某些早期 Swift 版本编写的源代码使用 Swift 5 编译器进行编译.Swift 5 编译器至少会支持用 Swift 4 编写的代码,但也可能会扩展回支持用 Swift 3 编写的代码.后者的最终决定将在 2018 年初做出.
Similar to Swift 4 , the Swift 5 compiler will provide a source compatibility mode to allow source code written using some previous versions of Swift to compile with the Swift 5 compiler. The Swift 5 compiler will at least support code written in Swift 4, but may also extend back to supporting code written in Swift 3. The final decision on the latter will be made in early 2018.
或者他们还没有更新文档..
链接来自 Hamish.
Or they haven’t updated the Documentation yet..
Link from Hamish.
这篇关于我可以使用 Swift 5 来构建用 Swift 3 编写的目标吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!