Amit
Amit

Reputation: 125

Is it possible to work with older iPhone/iPAD simulator (3.2, 4.0, 4.2) with Xcode 4.4 + Mountain Lion

I recently upgraded from Xcode 3.2.3 to Xcode 4.4 + Mountain Lion (in order to test my app on 5.1 iOS). But it only seems show support for 5.1 iOS simulators and not the older ones.

So, is it possible to work with older iPhone/iPAD simulator (3.2, 4.0, 4.2) with Xcode 4.4 + Mountain Lion.

Could anybody please guide me, how to test my app on older simulators?

Thanks

Upvotes: 3

Views: 1532

Answers (3)

Till
Till

Reputation: 27597

First of all, you can download and install the iOS 5.0 simulator additionally by selecting

Xcode->Preferences; enter image description here

And then navigate towards "Downloads" and tap on "Install" on the iOS 5.0 Simulator.

enter image description here


THIS IS OUTDATED BUT GIVEN FOR REFERENCE

With older Xcode (iPhone simulator) versions, it used to be possible to simply link the older (unsupported) iPhoneSimulator SDK-Versions into the correct paths but under Mountain Lion that seems to have stopped working. Just for giving some reference on how that was done;

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ ln -s /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk iPhoneSimulatorh4.3.sdk
root@lobomacpro-4 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ ls -la
total 40
drwxr-xr-x  9 root  wheel  306 Aug  6 14:59 .
drwxr-xr-x  7 root  wheel  238 Jul 26 23:26 ..
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:58 iPhoneSimulator3.2.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:58 iPhoneSimulator4.0.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk
drwxrwxr-x  8 root  admin  272 Oct 28  2011 iPhoneSimulator5.0.sdk
drwxr-xr-x  8 root  wheel  272 Jul 26 23:26 iPhoneSimulator5.1.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:58 iPhoneSimulatorh4.1.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:59 iPhoneSimulatorh4.2.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk
lrwxr-xr-x  1 root  wheel   83 Aug  6 14:59 iPhoneSimulatorh4.3.sdk -> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
root@lobomacpro-4 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ 

That will actually seem to work as it results into the following options within the simulator; enter image description here

Trouble is, on my machine the simulator stops working after startup if any of those unsupported versions are selected. Maybe there still is a way... just I did not get this to work as it used to on older OSs.

Upvotes: 4

Sascha
Sascha

Reputation: 5973

Only iOS Simulator 5.0 and above is supported by Xcode 4.4 + Mountain Lion. You can however install iOS 3.0 and iOS 4.0 device debugging support, so that you can still test your apps on devices running iOS 3.0 or 4.0 by going to Xcode -> Preferences -> Downloads -> Components.

Upvotes: 1

arnoapp
arnoapp

Reputation: 2506

You can't download older simulators anymore - sorry. But you can download the debugging support for older devices in the preferences.

Xcode - Preferences -> Go to Downloads and then to Components. There you can select several older devices.

Upvotes: 0

Related Questions