IOS – How to install iPhone Simulator 4.2 on Xcode 4.2

ios

Developer Information:

Version: 4.2 (4D199)
Location: /Developer
Applications:
Xcode: 4.2 (828)
Instruments: 4.2 (4233)
Dashcode: 3.0.2 (336)
SDKs:
Mac OS X:
10.6: (10K549)
10.7: (11C63)
iPhone OS:
5.0: (9A334)
iPhone Simulator:
4.3: (8H7)
5.0: (9A334)

As you see, Xcode4.2 is installed and this supports iOS4.3, 5.0 simulator.
How can I test app for iOS4.2?
Should I install Xcode 3.x?

Thanks in advance.

Best Answer

  • Download xcode_3.2.6_and_ios_sdk_4.3.dmg (note - you need a developer account to access this software. I have instead linked to an open-to-the-public Apple discussion that contains the direct download link
  • Mount the .dmg file
  • Inside the disk image there is an invisible "Packages" folder. To open it select "Go to folder..." command from Finder menu bar and digit the path "/Volumes/Xcode and iOS SDK/Packages/"
  • Now double-click "iPhoneSimulatorSDK4_2.pkg"
  • Click into the destination disk and a button "Select folder..." will be revealed
  • Click the above button and select your "Developer" folder
  • Install the package, and Restart Xcode.

This will install the Simulator 4.2 SDK (both iPad and iPhone) inside the folder "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/"

Now inside XCode 4.2 you can select this simulator from the menu.

Bye.