gpt4 book ai didi

swift - Xcode 9.0 版自动建议的默认 Swift 版本是什么?

转载 作者:行者123 更新时间:2023-11-28 12:16:52 40 4
gpt4 key购买 nike

Xcode 9.0 beta 版自动建议的默认 Swift 版本是什么?

是 Swift 3 还是 Swift 4?

最佳答案

有关更多引用,您可以从 apple 获取文档

You can use Xcode 9 to build targets that are written in either Swift 4 or Swift 3.

When the Swift 4 compiler is working with Swift 3 code, it identifies its language version as 3.2. As a result, you can use conditional compilation blocks like #if swift(>=3.2) to write code that’s compatible with multiple versions of the Swift compiler.

关于swift - Xcode 9.0 版自动建议的默认 Swift 版本是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46190270/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com