Reputation: 95
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
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.
Upvotes: 0
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
Reputation: 3219
Follow the step:-
1. Select your project from navigator
2. Select Target of your project and go to general tab
3. You can select version as per your lowest version requirement
Upvotes: 0
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