Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm working with xcode 5, and often get The Simulator can't be launched because it is already in use. when it's not running or open (i.e. after i do: quit simulator).

I stopped the application & don't have any other project that is open, running or using the simulator (please avoid these kind of suggestions).

this happens after i get and exception.

how can I "free" the simulator process without having to reboot my computer (right now that is the only solution i found) I've tried:

  1. simulator -->services-->a reset content and settings
  2. closing xcode and re-opening
  3. xcode --> developer toos --> simulator -->(open the simulator) quit simulator
  4. Activity monitor --> (the simulator is closed so nothing here to force close)

also the exception is not getting caught in any of my try catch so i wondering if which tool from the developer instrument can help me figure out what is wrong.

like image 975
Kukula Mula Avatar asked Mar 08 '14 08:03

Kukula Mula


People also ask

How do I delete all simulators in Xcode?

Go to Window -> Devices and Simulators . This will open a new window with all the devices you use in Xcode. At the top, tap on Simulators and you'll see a list on the left-side. From there, find the simulator you want to delete and Cntl - click (or right-click) and select Delete .

How do you launch a simulator?

Open the Emulators in Android StudioClick on the AVD Manager icon on the top icons bar. Using AVD Manager, you can create new devices, manage them and launch them directly. I hope this article was helpful!

How do I reset Xcode simulator?

You need to click on Simulator first. Hardware > Erase All Content and Settings. This will reset the simulator. Wait for a minute for the Simulator to rebuild.

How do I open the simulator from the command line?

Installing an appStart the emulator from the command line as described in the previous section, using any startup options necessary. Install your app using adb. Run and test your app on the emulator. While the emulator is running, you can also use the Emulator Console to issue commands as needed.


2 Answers

I got the solution..

  1. First of all quit your simulator.
  2. And then quit and restart Xcode.
  3. And then run your project.

I hope it will help you...

like image 168
Dharmbir Singh Avatar answered Sep 24 '22 18:09

Dharmbir Singh


Restart xcode and the simulator. It's a bug.

like image 36
Patrick Collins Avatar answered Sep 20 '22 18:09

Patrick Collins