Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is LLDB RPC Server ? When does it crash in Xcode? Why it crashes?

Tags:

xcode

crash

lldb

I am getting a message in my debugger:

The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

enter image description here

like image 904
Kumar Utsav Avatar asked Apr 26 '17 13:04

Kumar Utsav


3 Answers

In my case the LLDB RPC server consistently crashed every time I ran my app, even after cleaning the build folder and removing and reinstalling Xcode (Version 8.3.3 (8E3004b)) completely.

It turned out that apparently LLDB took objection to a breakpoint I had set, just moving this breakpoint by a line resolved the issue.

like image 151
Stefan Avatar answered Nov 19 '22 12:11

Stefan


In my case: I update to Xcode Version 9.3 (9E145) recently and Xcode execute to the line with breakpoint then I type "po XXX" commend it will show the same message. I try to delete following files

~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode

and it solved. not knowing exactly why but worth to try.

remember to backup those files in order to recovered in case any unexpected situation occur.

like image 8
andrew54068 Avatar answered Nov 19 '22 11:11

andrew54068


Make sure you are not running the app in release mode, if it is in release mode then change it to debug.

like image 7
iHulk Avatar answered Nov 19 '22 11:11

iHulk