简体   繁体   English

App Store 中新应用的最低操作系统版本和 Swift 语言版本是多少?

[英]What is the minimum OS version and swift language version to be used for new apps in App Store?

如果我正在开发一个新应用程序,要使用的最低操作系统版本和 Swift 语言版本是多少??

Aside of requirements, there is a difference between what is suggested and what is possible.除了要求之外,建议的内容和可能的内容之间存在差异。

Required is:需要的是:
You need to use Xcode 12.您需要使用 Xcode 12。
https://developer.apple.com/news/?id=ib31uj1j https://developer.apple.com/news/?id=ib31uj1j

Possible is:可能的是:
Support iOS 9, as it is currently the lowest target you can select with Xcode 12.支持 iOS 9,因为它是目前您可以使用 Xcode 12 选择的最低目标。

Suggested is:建议是:
Support iOS 13 or higher, as this run on 93% of all devices recently seen on the app store.支持 iOS 13 或更高版本,因为它可以在最近在应用商店看到的所有设备中运行 93%。 https://developer.apple.com/support/app-store/ https://developer.apple.com/support/app-store/

As for Swift至于斯威夫特
Swift 5.3 was comming with Xcode 12 and default for new project. Swift 5.3 随 Xcode 12 一起提供,并且是新项目的默认版本。 However was Swift 4x still compiling back then.然而,当时 Swift 4x 仍在编译。 Didnt try this recently as there is no point or advantages from using an old language version.最近没有尝试这个,因为使用旧语言版本没有任何意义或优势。 In fact you need to write way more boilerplate code if you stick with Swift 4.事实上,如果你坚持使用 Swift 4,你需要编写更多样板代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM