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

IosXcodeIos Simulator

Ios Problem Overview


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.

Ios Solutions


Solution 1 - Ios

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...

Solution 2 - Ios

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

Solution 3 - Ios

What might be going on here is that you've terminated the simulator, but you haven't actually terminated the debug session that Xcode still has open with the simulator. You'll notice that the stop button still appears in the top left. The debug session remains open because you never continued from the exception you hit.

You'll be able to kill the debug session by pressing the stop button, or by pressing command+period. After that, you'll be able to build to the simulator again.

Solution 4 - Ios

Once we get the error of "Simulator in Use", we will be left with no other option than quitting the Xcode and so the changes made in the code cannot be undone.

The only solution which I came across, is to make a habit to_

  1. Clean the Project twice or more times

  2. Reset the simulator before running the project.

And the worst part of this solution is to follow this procedure each time before you want to run the project in simulator.

But it does not require to Force Quit Xcode and so this atleast allows us to undo the changes in the code.

Can't help it fellas...

This Bug needs to be resolved by apple, I guess...

2nd September,2014.

I am not facing this problem since i updated my Mac OSX and Xcode. Seems like it is fixed by Apple.

Thanks fellas.

Solution 5 - Ios

Try doing a reset content and settings

iOS Simulator menu › Reset Content and Settings…

Solution 6 - Ios

You just need to close XCode and the iOS Simulator apps. Then restart XCode. That's it.

Solution 7 - Ios

You can also fix this by clicking stop button ( next to play button ) on upper left part of xcode. The problem is the simulator is / may be stopped but the debugger is still running on the file. So instead of restarting xcode, just click stop button.

cheers

Solution 8 - Ios

Check if another instance of Xcode uses the simulator. If so just stop the running application by pressing the rectangle on the top left corner of Xcode. It always happens to me because I forget to close the application that is running.

Solution 9 - Ios

Check the dock of MacOS, can you find the the simulator icon? Then to check the bottom of the icon whether there is a white line or a white point. If you dock is not at bottom, check the left or right side of the icon whether there is a white line or a white point. If have, the simulator is already in use. You should click on the simulator icon, then press cmd+Q to quite it.

Solution 10 - Ios

I tried above all but they could not help me to solve my issue. I removed the Xcode and installed it again then the problem is solved.

Make sure that you have installed Xcode properly otherwise Xcode will not work properly.

Solution 11 - Ios

I think it a bug in Xcode 5.1

and i use this solution for this issue. "Close all application from background and then run"

To close application from background use,

Select simulator then press "Ctrl+Shift+H+H" So it open background task screen in this close all application from background and then run your application from Xcode.

i hope this will solve you lots of time of restarting the Xcode.

Solution 12 - Ios

I hav the same problem. My way to slove it is simple: select the correct simulator from simulator's menu->hardware->device. seems the problem is becasue the simulator device didn't fit the scheme device in the xcode project.

Solution 13 - Ios

Check every project window, click "Stop running" button on the top left of XCODE.

Solution 14 - Ios

No need to stop Simulator.

  • Stop debugging all other projects in Xcode.
  • Now Run your desired application.

This worked for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKukula MulaView Question on Stackoverflow
Solution 1 - IosDharmbir SinghView Answer on Stackoverflow
Solution 2 - IosPatrick CollinsView Answer on Stackoverflow
Solution 3 - IosEagerodView Answer on Stackoverflow
Solution 4 - IosPiyush MathurView Answer on Stackoverflow
Solution 5 - IosanujView Answer on Stackoverflow
Solution 6 - IosdiegomercadoView Answer on Stackoverflow
Solution 7 - IosralphgabbView Answer on Stackoverflow
Solution 8 - IosarniotakiView Answer on Stackoverflow
Solution 9 - IossimaloneView Answer on Stackoverflow
Solution 10 - IosNarasimha NallamsettyView Answer on Stackoverflow
Solution 11 - IosAyazView Answer on Stackoverflow
Solution 12 - IoshighwingView Answer on Stackoverflow
Solution 13 - IosGankView Answer on Stackoverflow
Solution 14 - IosBhargavView Answer on Stackoverflow