Xcode: how to test my app on older versions of iOS

ios, testing, xcode

Solution

I think your applications deployment target is set to `iOS 6.0`. Make it to the lowest version you want. I believe iOS 4.3 is the lowest that is possible right now.

To change deployment target,

- Select project file in Project Navigation

- Click your target

- In the summary tab, choose your deployment target.

EDIT: After seeing @Abizern answer. Well I answered to this part in the question.

The only choice I have is to run my app on iPhone/iPad 6.0 simulator.

OP was not getting older version of simulator to show up in the drop down menu. It was because his project base sdk target and deployment target was set to `iOS 6.0`. By setting deployment target to a lower version, other simulators started to show up.

But as @Abizern correctly pointed out, to run on a simulator of lower version you have to choose the correct simulator from dropdown menu to run. Well just to make it clear.

Problem

I would like to test my app on older versions of iOS. By "older versions" I mean iOS 5.1 5.0 and 4.3. In order to do so, what should I do in Xcode? I've already downloaded (through Xcode) all the corresponding simulators, but I don't know how to build and run my app on a specific simulator. The only choice I have is to run my app on iPhone/iPad 6.0 simulator. Thanks.

Original source