xcode “附加”到模拟器时运行挂起
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8581827/
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
Run hangs when "Attaching" to simulator
提问by mputnamtennessee
XCode 4.2.1 on Lion. All was fine, and XCode started hanging with "Attaching..." when running in the simulator. I've read and tried ALL (I mean ALL!) other posts, but no success.
Lion 上的 XCode 4.2.1。一切都很好,在模拟器中运行时,XCode 开始挂起“附加...”。我已经阅读并尝试了所有(我的意思是所有!)其他帖子,但没有成功。
What is the root cause of this? Anyone got a real solution?
造成这种情况的根本原因是什么?有人有真正的解决方案吗?
回答by Chelsea Wang
Procduct---> Edit Scheme --->Run *.app--->Info--->Debgugger, Change "LLDB" to "GDB"
Procduct---> Edit Scheme --->Run *.app--->Info--->Debuggugger,将“LLDB”改为“GDB”
回答by WrightsCS
Try rebooting your machine. Sometimes the process get hung up and Xcode can see them and won't go any further because there is a pending process. Rebooting should take care of this.
尝试重新启动您的机器。有时进程会挂掉,Xcode 可以看到它们并且不会再继续下去,因为有一个挂起的进程。重新启动应该解决这个问题。
To avoid this in the future, make sure you are pressing the STOP button after testing your apps, and try to only run 1 process at a time, dont leave the simulator running with an attached process and then try to run the app on your device.
为避免将来发生这种情况,请确保在测试应用程序后按下 STOP 按钮,并尝试一次只运行 1 个进程,不要让模拟器运行附加进程,然后尝试在您的设备上运行应用程序.