重要 Apple将弃用Swift 3.x,必须将以Swift 3.x编写的代码库更新为(至少)Swift4.x.从2020年4月开始,无法从Swift 3.x项目部署到AppStore.请参见编辑#1 & 编辑#2 进行解释.根据 Apple的此更新: 从2020年4月开始,所有新应用程序和应用程序更新将需要使用iOS 13 SDK进行构建,并支持iPhone XS Max或更高版本的全屏设计.我已经检查了 matt 的答案这里是从7月开始的,但是有一些遗漏点需要详细说明.此要求是否会迫使开发人员使用Swift 5?我们有几个庞大的Swift 3项目,这些项目具有许多第三方依赖项.将这些项目更新为Swift 5是很麻烦的.只是要确认matt的答案,我们可以使用最新的Xcode版本针对iOS11或更高版本吗?从开发人员的角度出发,以支持可维护性和较少的平台特定代码,使用SwiftUI和黑暗模式等新功能将iOS13定位为更合理的选择吗?编辑#1根据达芬奇(DaVinci)的答案,他/她所说的一切都是正确的,除了第一点. 否,您仍然不能在构建"设置中设置Swift版本.不幸的是,10.1之后的所有Xcode版本都不支持Swift3.x.因此,具有第三方依赖性的旧版代码库将从Swift 3.x迁移到Swift 4.x. 10.1之后的Xcode版本的最低支持版本是Swift 4.x.编辑#2-重要!这很糟糕.根据@matt的答案,不可能将Xcode 10.1定位到iOS 13.考虑到这一点和 Edit#1 ,就无法在Swift 3.x上工作,也无法在10.1之后的Xcode版本的目标iOS 13上工作.简而言之,Apple将弃用Swift 3.x.解决方案 Swift 3.0已被Apple弃用,从2020年4月开始,您至少需要使用4.0. 是的,与Swift版本完全一样,您可以使用最新的Xcode定位较旧的iOS版本. 由于这些API均未包含在任何较早的版本中,因此您只能将这些功能定位为13以上.April2020 UpdateAs of April/2/2020 and due to COVID-19 pandemic, Apple extended the deadline for the new guidelines that enforces iOS13 and Swift 4.x from April 30 to June 30 of 2020. This was announced on their developer website.ImportantApple is deprecating Swift 3.x, codebases written in Swift 3.x must be updated to (at least) Swift 4.x. It is not possible to deploy to AppStore from a Swift 3.x project starting April 2020.See Edit #1 & Edit #2 for explanation.According to this update from Apple: Starting April 2020, all new apps and app updates will need to be built with the iOS 13 SDK and support the all-screen design of iPhone XS Max or later.I have already checked matt's answer here back from July, but there are few missing points that need to be elaborated.Does this requirement force developers to use Swift 5? we have a couple huge Swift 3 projects with many third-party dependencies. It's a hassle to update those projects to Swift 5.Just to confirm matt's answer, can we use the newest Xcode release yet target iOS11 and up?From a developer's point of view in support of maintainability and less platform-specific code, is it more logical to target iOS13 and up for using new features like SwiftUI and dark mode?EDIT #1As per DaVinci's answer, everything he/she said is true except for point #1. No you can still set the Swift version in the Build settings.Unfortunately all Xcode versions following 10.1 does not support Swift 3.x. So legacy codebases with their third-party dependencies are to migrate from Swift 3.x to Swift 4.x.Minimum supported version for Xcode versions after 10.1 is Swift 4.x.EDIT #2 -- IMPORTANT!This is bad. According to @matt's answer it's not possible to target iOS 13 with Xcode 10.1. With this and Edit #1 in mind, it's not possible to work on Swift 3.x or target iOS 13 with Xcode versions following 10.1. In short Apple is deprecating Swift 3.x. 解决方案Swift 3.0 is being deprecated by Apple, you will need to use at least 4.0 from April 2020Yes, exactly as with the Swift version you can target an older version of iOS with the latest Xcode.You can only target 13 and up for those features as the APIs are not included in any older version. 这篇关于iOS 2020年4月30日(延长至6月30日)2020年要求-iOS 13 SDK,全屏设计,启动Storyboard,Swift3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-05 23:40