当我尝试运行 Xcode 模拟器时,我收到错误“停止“(空)”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32700580/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
When I try to run the Xcode simulator I get the error 'Stop “(null)”?'
提问by Caleb Kleveter
I just updated to Xcode 7 and ran an app on a live device. Now for some reason, I get an error when I try to run an app in a simulator.
我刚刚更新到 Xcode 7 并在实时设备上运行了一个应用程序。现在出于某种原因,当我尝试在模拟器中运行应用程序时出现错误。
Stop “(null)”?
An instance of “(null)” is already running. Choose “Stop” to terminate and launch a new instance.
When I press the stop button it grays out, as in the screen shot, but nothing happens. I have tried resetting the content and settings on the simulator, but that didn't help.
当我按下停止按钮时,它会变灰,如屏幕截图所示,但没有任何反应。我曾尝试重置模拟器上的内容和设置,但这没有帮助。
回答by joels
Getting this as well with Xcode 7.
使用 Xcode 7 也可以获得此功能。
I've been following these simple steps to avoid seeing the error:
我一直在遵循这些简单的步骤来避免看到错误:
- Build your app.
- Run your app.
- 构建您的应用程序。
- 运行您的应用程序。
Annoying, and nota solution, but I think this is a bug within Xcode 7.
烦人,而不是解决方案,但我认为这是 Xcode 7 中的一个错误。
回答by Manesh
Completely quitting Xcode 7 and reloading resolved the simulator is already running
it for me.
完全退出 Xcode 7 并重新加载simulator is already running
为我解决了它。
回答by Vladimir Despotovic
I got this error too, and building and then running the app (cmd+b ; cmd+r) solved the problem.
我也遇到了这个错误,构建然后运行应用程序 (cmd+b; cmd+r) 解决了这个问题。
回答by JaredH
TL;DR: This is a recurring error in XCode 7 with no known solution. To get rid of it, disconnect your device, then reconnect and carry about your day. If running the simulator, kill it, then restart it. Hopefully Apple addresses this soon.
TL;DR:这是 XCode 7 中反复出现的错误,没有已知的解决方案。要摆脱它,请断开您的设备,然后重新连接并继续您的一天。如果运行模拟器,请杀死它,然后重新启动它。希望苹果尽快解决这个问题。
回答by Uma Madhavi
When you get like this stop (CMD+.)the stop the project.
当你像这样停止 (CMD+.) 时,停止项目。
->Quit Xcode
->退出Xcode
->Clean the project (CMD+Shift+K)
-> 清理项目 (CMD+Shift+K)
->Build the project(CMD+B)
-> 构建项目(CMD+B)
->Run the project(CMD+R)
->运行项目(CMD+R)
回答by zevij
If you are running on an actual device, I found that by disconnecting the device (iphone) from the computer/laptop and reconnecting eliminates this error/issue.
如果您在实际设备上运行,我发现通过断开设备 (iphone) 与计算机/笔记本电脑的连接并重新连接可以消除此错误/问题。
However, I still see in xcode the following message:
但是,我仍然在 xcode 中看到以下消息:
running <app name> on <phone name>
But at least I do not need to quit xcode.
但至少我不需要退出 xcode。
I did not have this when running on a simulator (always testing on a real device...)
在模拟器上运行时我没有这个(总是在真实设备上测试......)
回答by Etienne Lunetta
I suggest building your app and then cleaning it. For me, this ensured that later on I could just run the application.
我建议构建你的应用程序,然后清理它。对我来说,这确保了以后我可以运行应用程序。