Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.3 and iPhone Simulator 4.2

Is there a way to install iPhone Simulator 4.2 in Xcode 4.3 for Lion? I only can find how to install it in Xcode 4.2, but not Xcode 4.3 for Lion.

like image 441
Nebary Avatar asked Feb 18 '12 16:02

Nebary


People also ask

How do I use iPhone simulator in Xcode?

To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu and click Run. Xcode builds your project and then launches the most recent version of your app running in Simulator on your Mac screen, as shown in Figure 1-1.

Do I need Xcode for iOS simulator?

Launching the Simulator, though, always requires opening Xcode and going to Developer Tools. Because the Simulator. app is embedded within the Xcode app bundle, apps like LaunchBar won't find it to index it. LaunchBar, which is my launcher of choice, also ignores aliases, so dragging Simulator.

How do I connect simulator in Xcode?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators. But you cannot run them directly. You need to build your application on the simulator, and then you can run it.


2 Answers

I have found a way to install iPhone simulator 4.2 to Xcode 4.3:

Follow the instructions by Parth Bhatt, but install the simulator in a temporary folder ('Developer' folder doesn't exists in Xcode 4.3).

Once installed, go to <tmp_dir>/Platforms/iPhoneSimulator.platform/Developer/SDKs, and you'll find a file named "iPhoneSimulator4.2.sdk".

Open a new Finder window and go to /Applications and right-button on Xcode, select show the package contents, navigate to /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs, you will see a .sdk files, one for each iPhone simulator installed in Xcode.

Drag the "iPhoneSimulator4.2.sdk" file from your temporary folder and drop inside SDKs folder of Xcode package.

Restart Xcode and that's all (you can delete the temporary folder).

If your project has a Deployment target to 4.2, you'll have the 4.2 simulator available.

like image 75
Asilisoft Avatar answered Oct 15 '22 13:10

Asilisoft


Go to "Preferences -> Downloads tab -> Components tab" and install what You need. At the moment it lets me download 4.3 and 5.0 simulators.

like image 26
Jaroslav Avatar answered Oct 15 '22 13:10

Jaroslav