Alex Rivera | Logout

iOS simulator only list the latest iOS version. How can I set earlier versions

Asked 2011-09-18T04:03:58.297
19

According to the documentation should be able to choose which iOS version the simulator should run, however only the latest 4.3.2 is listed under "Hardware/Version".

The helps says: "To set the iOS release used in the simulation environment, choose Hardware > Version, and choose the version you want to test on."

I don't want to support 3.x (although it would be nice) but at least I want to simulate my app on 4.2, 4.1 and 4.0. What's going on? Why aren't they listed?

UPDATE: I'm on Lion so I cannot install an earlier version of Xcode. Before my Upgrade I could test different versions easily.

Edit
Report

1 Answer

18

the problem is that you have no other Simulator SDK installed which can be used. As @dorada has mentioned you have to install an older Xcode which in fact doesn't work because you're using Lion. I haven't tried it with Lion but principally it should work like before with Snow Leopard.
I'm referencing to my other answer how to get an older Xcode (don't know if it's still working)

After you have an older Xcode version, mount the image an navigate with terminal to that volume. There should be a hidden folder Packages. open that folder with open . and locate the two .pkg files you need (e.g. iPhoneSDK4_0.pkg and iPhoneSimulatorSDK4_0.pkg) and install both.

They will appear in your root directory and you have to move them to your Developer dir (don't simply overwrite, it will delete all other SDKs. go to the last different folder it should be iPhoneSimulator4.0.sdk\ and copy that one)

DONE (and at that point I have verified it: it works on my Lion. I used the dvd image which I have started backup'ing since 3.2.1)

answered 2011-09-22T20:53:40.277

Your Answer