-2

I am beginner in iPhone.

I want to make the iPhone app that compatible for all iPhone versions like 3 and above.

Please help me What to set in the project to make it compatible to all version.

Thanks in advance.

1 Answers1

0

You should set the deployment target in the target summary.

Edit: Xcode 4.5.x only supports iOS 4.3 and later so you can't support iOS versions below it.

Edit 2: If you are using and old version of Xcode this might be helpful for you. iOS 3.x support in Xcode 4

But you should think twice before writing an application that targets iOS4 and above. Targeting to old versions of iOS means that you must not use any of the API's of the next iOS versions such as ARC and auto layout. As a result your code will be harder to maintain and some features would be impossible to implement.

Before going on with it, think about how many users will you satisfy by supporting iOS4. Read these thousand words from apple and then decide for yourself

enter image description here

Community
  • 1
  • 1
gsach
  • 5,715
  • 7
  • 27
  • 42
  • thanks for your answer..In the Target Deployment there is no version 3 in Xcode 4. It only displaying the 4 and above version. How can i get the version 3 also – – user2580525 Jul 14 '13 at 09:20
  • You can't if you want to use Xcode 4. You will need to use an older Xcode version if you want to target iOS 3 or older. The latest OS version supported by the first generation iPod touch and first generation iPhone was 'iPhone OS 3.2.x'. – miho Jul 14 '13 at 09:25
  • okay. My Xcode version is 4.2 but will it support supports iOS 4.3 and later – user2580525 Jul 14 '13 at 09:26
  • I edited my answer again – gsach Jul 14 '13 at 09:29
  • Builds may work with iOS 6 and 7, but it won't give you a warning when you use a method/class which is outdated. For ex.: the UUID method, you will just get rejected from the App Store, but the app will work on device. But there may be more problems in future iOS version like iOS 7. – miho Jul 14 '13 at 09:30
  • okay. Please suggest me what target deployment should i choose that will be best and app will not reject by apple – user2580525 Jul 14 '13 at 09:33
  • This is a personal opinion but I wouldn't target anything below iOS5 unless i had really important reasons. – gsach Jul 14 '13 at 09:40
  • So I am settings to ios 5 is it ok now.. – user2580525 Jul 14 '13 at 09:47
  • Last question please confirm I am settings to ios 5 then it will run above 5 not below the version 5 – user2580525 Jul 14 '13 at 09:56
  • I absolutely confirm :D – gsach Jul 14 '13 at 09:57