如何在 Xcode 10 中设置以前的基础 SDK? [英] How do I set a previous base SDK in Xcode 10?

查看:56
本文介绍了如何在 Xcode 10 中设置以前的基础 SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

这个堆栈溢出问题很好地阐述了基础 SDK 与部署目标.

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

您可以使用 Xcode 10 定位的最旧的 iOS 版本是 iOS 8(它已经很老了).

In earlier versions of Xcode I could set the base SDK to the current iOS version and the deployment target to an earlier version as shown in the below slide from the iOS 7 TechTalk, session Architecting Modern Apps, Part 2:

This Stack Overflow question elaborates nicely on the Base SDK vs Deployment target.

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

However, now when I look at the base SDK config field in Xcode I just see "iOS" (which is an alias of "iphoneos").

According to 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).

This worries me because it seems that I can no longer target older versions of iOS.

I've done a lot of research by I cannot seem to work out definitively whether there still a way to use the 12.1 SDK but target older versions of iOS. Is there a way to do this?

解决方案

The base SDK is just "iOS". The exact version will depend on your version of Xcode (12.1 if you are using Xcode 10.1). The base SDK does not determine which versions of iOS are supported by your app.

You set the minimum version your app is compatible with by specifying the "iOS deployment target", either for your project as a whole:

or in the settings for a specific target in your project

The oldest version of iOS that you can target with Xcode 10 is iOS 8 (which is pretty old).

这篇关于如何在 Xcode 10 中设置以前的基础 SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆