Ninja
Ninja

Reputation: 95

how to get your app to be supported in different iOS versions?

I want to start learning Swift right now and the tutorial is for iOS 9 development, so I want to know that if I will follow this tutorial and then want my app to work for iOS 8/7 what will it take? as not all the people upgrage right away I would like to support earlier versions too.

thanks

Upvotes: 1

Views: 762

Answers (4)

Arc676
Arc676

Reputation: 4465

Open your project settings in Xcode, select your project, and under the "Info" tab, change the deployment target. Your application will be compatible with all OSs newer than the one you choose.

Note that this can limit the your code. For example, there is a minimum OS requirement in order to compile certain features, such as Swift or Metal. If the OS you choose is too old for your code, Xcode will give you a warning.

deployment target

Upvotes: 0

GoRoS
GoRoS

Reputation: 5375

You will not have any problem to run your app in OS X 10.9 and iOS 7 or higher SDK versions. Just select your deployment version in your project settings and that's all.

For further compatibility questions check this link.

Upvotes: 0

Bhavin Ramani
Bhavin Ramani

Reputation: 3219

Follow the step:-

1. Select your project from navigator

enter image description here

2. Select Target of your project and go to general tab

enter image description here

3. You can select version as per your lowest version requirement

enter image description here

Upvotes: 0

Max
Max

Reputation: 326

Your project name -> General -> Deployment info -> Deployment Target -> Select your target

Be careful, some methods you will use in iOS 9 does not exist in earlier iOS, don't panic if it's the case

Upvotes: 2

Related Questions