Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create project for iOS5 on XCode 4.6

Tags:

xcode

ios

iphone

Tell me please, how can I create project for iOS5 + in my XCode 4.6, where all builds for iOS6 +

I change Deployment Target

enter image description here

And how change base SDK? Or maybe I cann't change it?

enter image description here

And what I must do, that my XCode show me warnings if I will try use methods, that can be used only in iOS 6+?

like image 815
Neznajka Avatar asked Mar 03 '13 11:03

Neznajka


1 Answers

First you should understand a few things. Deployment target is the minimum OS version that your app supports. If you set into iOS 5.0 you can assure that it's support iOS 5.0 and above. Base SDK is the SDK which is used to compile your application. Always use latest SDK available.

If you want to create app that support iOS5.0 and above set deployment target as 5.0. Then use latest SDK available. The reason is that if you change base SDK to some lower version, your app may not support ios6 since some of the methods are deprecated in iOS6. If you compile it with latest SDK it shows warning. You can test your app by installing different simulators to check wether it is working properly. Mainly you need to handle orientation issues since it is different in both.

You can use conditional compilation. Remember not use autoLayout and attributed strings. Which wont support in ios5

like image 112
Anil Varghese Avatar answered Sep 30 '22 11:09

Anil Varghese