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

标签 swift xcode xcode9

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/

相关文章:

ios - 线程 1 : Signal Sigabt in AppDelegate

cocoa - NSTextView - 如何预设制表符?

iphone - 无法调整 UITextView 的大小

ios - Xcode 8 iOS 10 - NSMutableDictionary 抛出 - "mutating method sent to immutable object"

ios - Xcode 9 模拟器慢

ios - -allowProvisioningUpdates 不起作用

ios - 将我的应用程序连接到服务器/JSON/Swift/iOS 的注册机制

swift - 尝试在使用 NSUserDefaults 注册整数字典时设置 plist 值错误

swift - 可能通过枚举案例失败但仍使用其关联值?

ios - 更新xcode版本9.0.1时遇到问题