What does deployment target mean?

Lets say you have set minimum deployment target to iOS 9. This means your application is compatible for iOS 9 and above devices.

The application won't run on below 9.0 devices but can run on any iOS version greater than iOS 9.0.


The deployment target determines your app's ability to run on older iOS versions.

App with deployment target set to 10 will work on iOS version 10+ (10, 11, 12, 13 ...) but won't work on 9.x.

When a new version of iOS is released, some people do not bother to update their devices to the latest iOS version and thus they can't download your app from the App Store.

Example

If you choose higher deployment target (e.g 12.1), your app won't be able to download for the people who even have latest devices but have older iOS version (iPhone X with 11.0). In Contrast If you choose lowest possible deployment target (e.g 6.0), you try to make your app maximum backward compatible (so even if someone hasn't updated their iOS in ages will be able to download your app).

CAUTION

Many (almost all) newer frameworks and features won't be able to run properly (Behave as expected) on lower iOS versions which increases the chances of app crashes.

What Affects Deployment Target

Following are few factors that demands higher deployment target.

1) Using latest iOS SDK (alone)

2) Using latest iOS SDK specific features (Constraints, newer XIB files etc).

3) Using fast adapting external libraries / Frameworks (e.g Facebook SDK, Firebase etc).

4) Higher Swift Version (5.0) requires higher deployment target vs writing your app in legacy Objective C) !Needs citation.

SOLUTION

We have been using Deploymate for maximum backward support. It mainly assists us about warning the following:

1) Newer APIs that won't work on lower iOS versions

2) Using deprecated methods that won't work on newer iOS versions.

This is when you start fixing your code to make it available for lower iOS versions for maximum compatibility.

Note: Xcode also informs about several pitfalls. Deploymate is neither associates with us or pay us in any form. You can look for other alternates.


If you are new to Xcode, I suggest accepting the default, and thinking of it as a constraint on your project.

As newer of Xcode versions come along, support for older target values will be removed. Companies that have extensive customer bases have to deal with this problem in their own way.

In most projects I have worked on, the iOS version matters because it dictates which devices can run your application.

For example, iOS 10 essentially left behind all iPod-style connectors.


iOS Deployment Target(IPHONEOS_DEPLOYMENT_TARGET)

Deployment Target is a minimum version of iOS which is supported by your target.

It means that:

  • as a developer you support this version and you are able to support all next compatibility
  • as a user you should have at least this version of iOS

To change it in Xcode 11.5

Build Settings -> iOS Deployment Target
//.pbxproj
IPHONEOS_DEPLOYMENT_TARGET

Tags:

Ios

Xcode

Ios10