iOS app crashing every other launch, can't find error

给你一囗甜甜゛ 提交于 2019-11-28 03:26:04

Seems to be a combination of OS X 10.8.4 and LLDB. As kenster says, switching to GDB makes the problem go away.

Edit:
It's caused by a race condition in the debug server (I hear).

Here's a fix if you want to keep using LLDB: Instead of clicking Run while the app is already running in the simulator, kill it in Xcode (⌘-.), say "I love Xcode" 5 times and Run it again (⌘-R). It won't crash, I tested it.


Fixed in Xcode 4.6.3.

kenster

I was having this issue as well. Take a look at this post. Xcode 4.6.2 app crashes on every second run

Basically change your debugger from LLDB to GDB. I can't believe this was due to LLDB being buggy.

Switching to GDB or rebooting device/host does not solve the issue in my environment.

However, modifying the Run target in the associated XCode scheme to no longer launch automatically but instead to "Wait for HelloWorld.app to launch" did.

Only drawback is that this implies to manually start the application on the device. The debugger will then get connected.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!