Xcode 版本 9.0 beta 的自动建议的默认 Swift 版本是什么?
What is the default Swift version for auto suggestion on Xcode Version 9.0 beta?
Xcode 版本 9.0 beta 的自动建议的默认 Swift 版本是什么?
是Swift3还是Swift4?
是Swift4。 Apple 始终鼓励使用最新的语言及其功能。
如需更多参考,您可以从 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.
Xcode 版本 9.0 beta 的自动建议的默认 Swift 版本是什么?
是Swift3还是Swift4?
是Swift4。 Apple 始终鼓励使用最新的语言及其功能。
如需更多参考,您可以从 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.