xcode 随机 (lldb) 在 Mac OS X 10.8.4 上的 iOS 模拟器中崩溃
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16957602/
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
Random (lldb) crashes in iOS Simulator on Mac OS X 10.8.4
提问by Daniel Tovesson
I've been struggling with an weird issue for some time now. When running my app with the iOS Simulator initially closed it launches correctly. But if I then run it again without closing the simulator it crashes and just prints (lldb) in the error log. If I then run it again (without closing the simulator) it launches correctly. And if I do the same again it crashes. So it seems to be every second time. It works when using a iOS device and I have a college with the exact same project who doesn't experience this problem in the iOS Simulator. What I've tried is cleaning, reset contents and settings, manually removing the app, restarting my computer and reinstalling Xcode.
一段时间以来,我一直在为一个奇怪的问题而苦苦挣扎。在 iOS 模拟器最初关闭的情况下运行我的应用程序时,它会正确启动。但是,如果我在不关闭模拟器的情况下再次运行它,它就会崩溃并在错误日志中打印 (lldb)。如果我再次运行它(不关闭模拟器),它会正确启动。如果我再次这样做,它就会崩溃。所以它似乎是每第二次。它在使用 iOS 设备时有效,我有一所大学的项目完全相同,但在 iOS 模拟器中没有遇到此问题。我尝试过的是清理、重置内容和设置、手动删除应用程序、重新启动计算机并重新安装 Xcode。
回答by Max MacLeod
There's an issue with OS X 10.8.4 that causes random simulator crashes.
OS X 10.8.4 存在导致随机模拟器崩溃的问题。
https://devforums.apple.com/message/817179#817179
https://devforums.apple.com/message/817179#817179
A couple of workarounds have been suggested, including switching to GDB. See here:
已经提出了几种解决方法,包括切换到 GDB。看这里:
We have found the issue. It is a process killing race condition in "debugserver" when it is killing the application it is debugging which causes this problem to occur.
The work around that should work for all folks is to kill the app first, wait for it to go away, then hit CMD+R. The quick turn around of just pressing CMD+R is now showing this thread race condition more often in 10.8.4.
我们已经发现了问题。当它杀死正在调试的应用程序时,它是一个进程杀死“debugserver”中的竞争条件,从而导致发生此问题。
应该对所有人都有效的解决方法是先杀死应用程序,等待它消失,然后按 CMD+R。只需按 CMD+R 的快速切换现在在 10.8.4 中更频繁地显示此线程竞争条件。
回答by eladleb
Apple resolved this issue in June 13th, 2013 build:
Apple 在 2013 年 6 月 13 日的版本中解决了这个问题:
回答by zedzhao
Yes, I meet it too. In Product -> edit scheme change the debugger from lldb to gdb. Can simply solve it. Hope Apple can fix it asap.
是的,我也遇到了。在产品 -> 编辑方案中,将调试器从 lldb 更改为 gdb。可以简单解决。希望苹果能尽快修复。