Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set minimum iPhone OS version for app?

I'm about to publish an app on the app store, and I'm looking to set the minimum OS version as it appears in iTunes as "Requires iPhone OS 3.x or later". 2 questions:

1) Where do I set this in my Xcode project?

2) I'm aware of the UITableViewCell numberOfLines property that is present only in OS > 3.1. If I set my minimum as OS 3.0, will people who have 3.1 be able to see the number of lines properly as I coded? (Obviously people on 3.0 won't be able to)

Thanks.

like image 693
quantum Avatar asked Nov 10 '09 23:11

quantum


People also ask

How many versions of iOS should my App support?

Nonetheless, you should be supporting iOS 6 by now and aspiring to support iOS 7 (if you aren't already). Overall, no matter what your scenario is, I highly recommend that you only support the latest two versions. Supporting the latest three iOS versions would only be necessary on the brink of a new iOS release.

How do I know my minimum iOS version?

To find the software version installed on your device, go to Settings > General, then tap About.

What is minimum deployment target iOS?

That is the iOS deployment target or the minimum deployment target for iOS. It means that the application runs on any iOS device with iOS 14.3 or later installed. The values the dropdown menu lists depend on the version of Xcode you are using. Xcode 12, for example, no longer supports iOS 8.


1 Answers

What you need to do is change the Deployment Target setting in your project. The Deployment Target specifies the minimum OS you would like your application to run on. This is regardless of the SDK you build against, which should always be the most recent SDK so you can ensure your application runs correctly on the most recent OS version available. So, in short:

  • Set the Base SDK to be the latest OS available
  • Set the Deployment Target to be the earliest OS you'd like your app to run on.

To answer your second question, if you set the Deployment Target to 3.0 your 3.1-only code will no longer compile. There are workarounds to that problem, however.

like image 128
fbrereto Avatar answered Oct 05 '22 22:10

fbrereto