“使用中的模拟器”即使simultor未运行,也会显示错误消息 [英] "Simulator in use" error message shown even after simultor is not running

查看:236
本文介绍了“使用中的模拟器”即使simultor未运行,也会显示错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试从Xcode运行应用程序时,它都会显示一条错误消息:

Whenever I try to run an application from Xcode it displays an error message:

即使模拟器没有运行,也会发生这种情况。我强制退出活动监视器中的模拟器进程,但它一次又一次地显示该消息。

This happens even though the simulator is not running. I force quit the simulator process from Activity Monitor, but it shows that message again and again.

如果我退出并重新打开Xcode它会正常工作,但除了关闭Xcode之外还有其他解决方案吗?

If I quit and reopen Xcode it will work without error, but is there any solution other than closing Xcode?

规范:

大多数答案显示您必须退出Xcode或重新启动Xcode。如果存在复杂情况的中间情况(例如撤消和重做代码)。在这种情况下,如果您关闭Xcode,则无法撤消上次修改的代码(不是在谈论SVN提交)。 所以我想知道如何通过关闭Xcode解决它。

Most of answer showing me that you have to quit Xcode or restart Xcode. If there is a scenario when you are a middle of complex situation (like undo and redo code). In this situation if you close Xcode you are not able to undo the last modified code (Not talking about SVN commit). So i would like to know how to resolve it with out closing Xcode.

我正在运行Xcode 5.1 OS X 10.9.2上的.1(5B1008)

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

推荐答案

最后我找到了上述问题的解决方案:

有两个解决方案:

第一:简单一个解决方案

当您运行Xcode的多个实例时会发生这种情况。检查Xcode的所有实例,其中一个显示项目运行状态(即使您的模拟器已关闭)。单击Xco​​de实例的停止按钮将解决此问题。

It happens when you have multiple instance running of Xcode. Check all instance of Xcode one of them showing that project running state (Even if your simulator is close). Click on Stop button of that Xcode instance will resolve this issue.

再次!您无需关闭Xcode。

AGAIN !! You do not need to close Xcode.

第二:复杂的解决方案

如果第一个解决方案不起作用,请遵循此解决方案。

If first solution does not work than follow this solution.

活动监视器未显示任何模拟器进程正在运行。消息仍显示正在使用的模拟器。

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

其真实的模拟器进程不在内存中,但其他应用程序正在使用它。

Its true, simulator process is not in a memory but other application is utilise it.

喜欢我的我用来打开许多Xcode实例。所以有你的应用程序和其他演示应用程序或任何第三方应用程序的实例。

Like in my case i use to open many instances of Xcode. So there are instance of your application and other demo app or any third party app also.

所以我确实发现其中一个第三方应用程序是使用模拟器即使我退出模拟器。这就是它继续说模拟器在使用中的原因。如下图所示

So i did found that one of the third party application is use simulator even if i "Quit" simulator. That's why its keep saying that "Simulator in use". Shown in below image

进程 AMSlideMenu 是使用第三方控件(我的意思是它的Xcode实例正在运行)。我刚退出这个过程,消息将不再出现。

The process AMSlideMenu is a third party control is used (i mean its Xcode instance is running). I just quit this process and message won't appear any more.

我不是说它来自 AMSlideMenu 。这是来自Xcode环境的问题,即使我们退出模拟器,有时它的一个实例仍在使用模拟器进程。

I am not saying that it is issue from AMSlideMenu. It is issue from Xcode environment, Sometimes one of its instance is keeping simulator process in use even if we quit Simulator.

希望这将有助于任何仍然面临这种情况的人问题,并不愿意退出Xcode来解决这个问题(因为你处于某种程度的中间,而那时候退出Xcode是不可行的)。 :)

Hope this will help any one who still facing this kind of issue, And not willing to quit Xcode to over come of this issue (because you are in middle of something and its not feasible to quit Xcode that time). :)

这篇关于“使用中的模拟器”即使simultor未运行,也会显示错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆