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。
3 个解决方案
#1
20
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
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.
我们发现了这个问题。它是一个进程杀死“debugserver”中的竞争条件,当它正在杀死正在调试的应用程序时会导致出现此问题。
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.
对于所有人来说,解决这个问题的方法是首先杀死应用程序,等待它消失,然后点击CMD + R.只需按下CMD + R即可快速转向,现在在10.8.4中更频繁地显示此线程竞争状态。
#2
5
Apple resolved this issue in June 13th, 2013 build:
Apple于2013年6月13日解决了此问题:
#3
1
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.
是的,我也遇到了。在Product - > edit scheme中,将调试器从lldb更改为gdb。可以简单地解决它。希望Apple可以尽快修复它。
#1
20
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
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.
我们发现了这个问题。它是一个进程杀死“debugserver”中的竞争条件,当它正在杀死正在调试的应用程序时会导致出现此问题。
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.
对于所有人来说,解决这个问题的方法是首先杀死应用程序,等待它消失,然后点击CMD + R.只需按下CMD + R即可快速转向,现在在10.8.4中更频繁地显示此线程竞争状态。
#2
5
Apple resolved this issue in June 13th, 2013 build:
Apple于2013年6月13日解决了此问题:
#3
1
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.
是的,我也遇到了。在Product - > edit scheme中,将调试器从lldb更改为gdb。可以简单地解决它。希望Apple可以尽快修复它。