如何在 Xcode 10 中设置以前的基础 SDK?

How do I set a previous base SDK in Xcode 10?

在 Xcode 的早期版本中,我可以将基础 SDK 设置为当前 iOS 版本,将部署目标设置为早期版本,如下面来自 iOS 的幻灯片所示7 TechTalk,会话构建现代应用程序,第 2 部分:

这个 Stack Overflow 问题很好地阐述了 Base SDK 与部署目标。

What's the meaning of Base SDK, iOS deployment target, Target, and Project in xcode

但是,现在当我查看 Xcode 中的基本 SDK 配置字段时,我只看到 "iOS"(这是 "iphoneos" 的别名)。

根据https://developer.apple.com/ios/submit/

Starting March 2019, all iOS apps submitted to the App Store will need to be built with the iOS 12.1 SDK or later, and support the all-screen design of iPhone XS Max or the 12.9-inch iPad Pro (3rd generation).

这让我很担心,因为我似乎无法再针对旧版本的 iOS。

我做了很多研究,我似乎无法确定是否仍然有办法使用 12.1 SDK,但目标是 iOS 的旧版本。有办法吗?

基础 SDK 只是 "iOS"。确切的版本将取决于您的 Xcode 版本(如果您使用的是 Xcode 10.1,则为 12.1)。基础 SDK 无法确定您的应用支持哪些 iOS 版本。

您可以通过指定 "iOS deployment target" 为您的整个项目设置您的应用兼容的最低版本:

或在项目中特定目标的设置中

您可以使用 Xcode 10 定位的 iOS 的最旧版本是 iOS 8(相当旧)。

顺便说一句,您可以在 Xcode Preferences/Locations:

中查看或 select 您正在使用的 Base SDK