Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Simulator Can't Be Lauched?

When I press Run on Xcode with other tasks already running, the following message appears:

Simulator in Use. The Simulator can't be launched because it is already in use.

I checked with some friends and when they press run, Xcode automatically stop the tasks running and run the app you want. How can I configure this here?

Thanks in advance,

like image 310
Arildo Junior Avatar asked Oct 30 '11 20:10

Arildo Junior


People also ask

How do I open my iPhone simulator?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.

How do I install Apple simulator?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download. When a simulator is opened from AppStudio, AppStudio Player automatically installs (if necessary) and opens in it.

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.


3 Answers

Quit the simulator and try again. if not working quit the Xcode and try again.

like image 77
Sabareesh Avatar answered Sep 21 '22 11:09

Sabareesh


If you have two projects open in Xcode and one is running on the simulator, you can't run the other. Go through each project window and see if any are running, and if they are, press the "Stop" button on the top left:

enter image description here

like image 24
Josh Avatar answered Sep 22 '22 11:09

Josh


In most cases Josh answer solves this problem. But just now happened to me to have only one project in Xcode and trying to clean and built it did nothing. For me (this time) the solution was to:

  1. Right click the simulator from dock and click Quit.
  2. I did the same for Xcode (right click on Xcode in Dock and clicked Quit).
  3. After that just re-open Xcode and voila!

It works!!!

like image 41
arniotaki Avatar answered Sep 23 '22 11:09

arniotaki