Xcode sometimes crashes when I try to debug in iPhone Simulator after I upgrade Xcode6

本秂侑毒 提交于 2019-12-04 07:36:43

I started running into this problem recently. Tried without success a range of things to fix it including reinstalling Xcode (as Apple's Crash Reporter dialog suggests), reset the Simulator, clean build, clean DerivedData folder, etc. Getting desperate, I actually studied the crash report.

The clue to fixing it for me lay there:

Thread 24 Crashed:: <DBGLLDBSessionThread (pid=7926)>
...
14  com.apple.dt.dbg.DebuggerLLDB   ... -[DBGLLDBSession _createBreakpointFromFileBreakpoint:] + 254
...

LLDB is trying to create a breakpoint at the time it crashes. So, I deleted all my breakpoints in Xcode before re-running the project in the Simulator and now it works.

(You didn't post enough of your crash report to see what happened in your case, so your mileage may vary.)

I do these steps after every update of Xcode:

  • Product --> (hold down Alt key) Clean Build Folder
  • Product --> Clean
  • Window --> Organizer --> Delete derived data

Then rebuild the project

Code signature issues are usually due to a corrupted or incomplete install. It might be that Xcode.app is loading a plugin at the time of the crash, and it is failing code signature verification. The snippet of your log is not enough for me to dive into it more. Please file a radar at http://bugreport.apple.com (and reference the number here if you don't mind).

Also, you might try deleting Xcode.app from your system and reinstalling if you're feeling up to it.

I got this same error, and resolved it by configuring Code Signing Entity and Provisioning Profile appropriately.

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