简体   繁体   English

XCode部署目标iOS 6 =兼容性?

[英]XCode deployment target iOS 6 = compatibility to?


I seem to be not understanding the effects of a specific deployment target in XCode (4.5) correctly. 我似乎没有正确理解XCode(4.5)中特定部署目标的影响。 Specifically, I got an app in the app store that was previously set for deployment target 5.0, meaning on the app store page it says "requires iOS 5.0". 具体来说,我在应用程序商店中获得了一个以前为部署目标5.0设置的应用程序,这意味着在应用程序商店页面上显示“需要iOS 5.0”。 So when I now set the deployment target to 6.0 in my next update, does that mean it'll require iOS 6 and otherwise won't start? 因此,当我在下次更新时将部署目标设置为6.0时,这是否意味着它将需要 iOS 6,否则将无法启动? I'm not using new iOS 6 features in my update. 我在更新中没有使用新的iOS 6功能。

I guess that means I should stay at 5.0 for my deployment target, but then what is the point of changing your deployment target (provided the one you had used previously is not totally obsolete)? 我想这意味着我应该保持5.0我的部署目标,但那么更改部署目标的重点是什么(前提是你之前使用的那个并不是完全过时的)?

There are two primary settings used for your targeting your builds: 您的构建定位有两个主要设置:

Base SDK & Deployment Target. 基础SDK和部署目标。

The Base SDK = What are the latest features I want available in this app? Base SDK =这个应用程序中我想要的最新功能是什么?

The Deployment Target = What is the earliest OS I want to be able to run this app? 部署目标 =我希望能够运行此应用程序的最早的操作系统是什么?

So, if you have both of these set to iOS 6, the user must have iOS 6 to install or run the app. 因此,如果您将这两个设置为iOS 6,则用户必须安装iOS 6才能安装或运行该应用程序。

If you have a Deployment Target of iOS 5.0 and a Base SDK of 6.0 that means it'll install and run in iOS 5.0, but you need to be careful to branch your code and not use any iOS 6.0 features if the user is running on an iOS 5.0 device. 如果你有一个iOS 5.0的部署目标和6.0的基础SDK,这意味着它将在iOS 5.0中安装和运行,但你需要小心分支你的代码,如果用户正在运行你不需要使用任何iOS 6.0功能iOS 5.0设备。

So when I now set the deployment target to 6.0 in my next update, does that mean it'll require iOS 6 and otherwise won't start? 因此,当我在下次更新时将部署目标设置为6.0时,这是否意味着它将需要iOS 6,否则将无法启动?

Yes, if your deployment target is iOS 6, then users will need iOS 6 or above to run it. 是的,如果您的部署目标是iOS 6,那么用户将需要iOS 6或更高版本来运行它。 Simple as. 简单如。

Your deployment target is your baseline for supported devices, it's the minimum version you support. 您的部署目标是受支持设备的基准,它是您支持的最低版本。 This doesn't mean you can't use iOS 6 specific features, but it does mean you need to take into account iOS 5 users at runtime (See iOS SDK Compatibility Guide ) 并不意味着您无法使用iOS 6特定功能,但它确实意味着您需要在运行时考虑iOS 5用户(请参阅iOS SDK兼容性指南

What developers typically do is update their base SDK . 开发人员通常做的是更新他们的基础SDK This means they're able to take advantage of the latest abilities of the SDK, to make a better user experience for users on that iOS version. 这意味着他们能够利用SDK的最新功能,为iOS版本的用户提供更好的用户体验。 Having a base SDK of iOS 6 does not mean the app won't work for iOS 5 users. 拥有iOS 6的基本SDK 并不意味着该应用程序不适用于iOS 5用户。

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

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