我可以使用 Swift 5 构建在 Swift 3 中编写的目标吗?
Can I use Swift 5 to build targets that are written in Swift 3
在 2019 年初或 2018 年底,Apple 将发布 Xcode 10.x 和 Swift 5. 在我的项目中,我使用 Cocoa pods 这是写于Swift3,被作者弃用
我想知道我是否必须更换 pods 或升级,或者我可以让它们保持原样。如果Swift5会build targets写在Swift3,我可以继续用pods写在Swift3,如果不行,我怎么upgrade/change它。
问题:
Swift 5 构建目标是用 Swift 4 还是 Swift 3 编写的?
还不清楚how far they’ll go。
Source Stability
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.
或者他们还没有更新文档..
Link 来自哈米什。
不,您不能混合使用 Swift 3 和 Swift 5 在应用商店中发布。
Swift 5 至少需要 Xcode 10.2,并且 Xcode 10.2 dropped support for Swift 3,这意味着它将拒绝构建任何 Swift 3.x 目标。
Swift 5 no longer supports the Swift 3 Package.swift tools-version. Packages still on the Swift 3 Package.swift tools-version should update to a newer tools-version. (41974124)
Swift 3 mode has been removed. Supported values for the -swift-version flag are 4, 4.2, and 5. (43101816)
在 2019 年初或 2018 年底,Apple 将发布 Xcode 10.x 和 Swift 5. 在我的项目中,我使用 Cocoa pods 这是写于Swift3,被作者弃用
我想知道我是否必须更换 pods 或升级,或者我可以让它们保持原样。如果Swift5会build targets写在Swift3,我可以继续用pods写在Swift3,如果不行,我怎么upgrade/change它。
问题: Swift 5 构建目标是用 Swift 4 还是 Swift 3 编写的?
还不清楚how far they’ll go。
Source Stability
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.
或者他们还没有更新文档..
Link 来自哈米什。
不,您不能混合使用 Swift 3 和 Swift 5 在应用商店中发布。
Swift 5 至少需要 Xcode 10.2,并且 Xcode 10.2 dropped support for Swift 3,这意味着它将拒绝构建任何 Swift 3.x 目标。
Swift 5 no longer supports the Swift 3 Package.swift tools-version. Packages still on the Swift 3 Package.swift tools-version should update to a newer tools-version. (41974124)
Swift 3 mode has been removed. Supported values for the -swift-version flag are 4, 4.2, and 5. (43101816)