1

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

8
  • Unless you use iOS 9 specific features, your app will work fine in below versions. Commented Nov 28, 2015 at 14:08
  • You are only starting out, so focus on the basics first. Different versions of iOS differ in some small ways and most of the times, code for older iOS will run just fine on newer version. Beside that, I recommend that you check out the iOS version stats from Apple. 91% of devices run iOS 8 or 9. It's up to you on whether you want to target the other 9%. Commented Nov 28, 2015 at 14:13
  • @JustAnotherCoder Remember that many users still have the iPhone 4 which was stuck in iOS 7. I read that 12% of users still have iOS 7 (unfortunately for us, developers). Commented Nov 28, 2015 at 14:17
  • 1
    Don't bother with anything less than iOS9 Commented Nov 28, 2015 at 15:42
  • 2
    Hi maddy. It's tough. You make "bugger all" money from 7/8 now. You get the effect where people with old crap devices just don't waste money on farm games or anything else. For a new developer, it seems an incredibly obscure concern. :/ Commented Nov 28, 2015 at 15:46

4 Answers 4

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

To clarify: select as Deployment Target the minimum iOS version you choose to support. If you want devices running newer iOS versions to use features that don't exist in the minimum, then make such code "conditional". Either @available/#available compiler directive, or use respondsToSelector.
0

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

1 Comment

@Ninja you can upvote and accept answer if you get answer :)
0

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.

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.