"Simulator in use" error message is displayed even after not working

Whenever I try to launch the application from Xcode, the error message appears:

Simulator in use

This happens even if the simulator is not working. I forcefully exit the simulator process from Activity Monitor, but it shows this message over and over again.

If I leave and close Xcode again, it works without error, but is there any solution other than closing Xcode?

Specifications:

Most of the answers show me that you need to quit Xcode or restart Xcode. If there is a scenario where you are in the middle of a difficult situation (e.g. undo and redo code). In this situation, if you close Xcode, you won't be able to undo the most recently modified code (let alone commit SVN). So, I would like to know how to resolve it with Xcode closing.

I am running Xcode 5.1.1 (5B1008) on OS X 10.9.2

+2


source to share


4 answers


Finally, I found solutions for the above problem:

There are two solutions:

First: a simple solution

This happens when you have multiple instances of Xcode. Check all instances of Xcode, one of which shows the project progress (even if your simulator is close). Click the Stop button of this Xcode instance to resolve this issue.

AGAIN!! You don't need to close Xcode.

Second: hard one decision

If the first solution doesn't work, how should this solution be followed.

Activity monitor, not showing any simulator process, is running. However, the message shows "Simulator in use".



Its true simulator process is not in memory, but another application uses it.

As in my case, I use to open many instances of Xcode. So there are examples of your application and another demo application or third party application.

So, I found that one of the third party applications uses the simulator even though the simulator is " quit ". That's why he goes on to say that "a strong simulator to use". Shown below.

enter image description here

The process is AMSlideMenu

used to be managed by a third party (I mean its Xcode instance is running). I just stopped this process and the message won't appear again.

I am not saying that this is a question from AMSlideMenu

. This is a problem from the Xcode environment. Sometimes one of its instances supports the simulator process, even if we exit the Simulator.

Hope this helps anyone who is still facing this kind of problem and doesn't want to leave Xcode to deal with this problem (because you are in the middle of something and it is impossible to exit Xcode at this time) .: )

0


source


  • Open a terminal.
  • Get the pid of the simulator using the following command. ps -e | grep "Xcode. * iPhone Simulator"
  • Now kill the process with the Unix kill and pid command obtained from the previous step.


0


source


Close Xcode. After a while, the simulator should work again.

0


source


try right-clicking the IOS simulator icon on the dock and hitting "Exit"

-1


source







All Articles