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

后端 未结 12 1140
走了就别回头了
走了就别回头了 2020-12-03 02:29

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

相关标签:
12条回答
  • 2020-12-03 02:51

    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.

    0 讨论(0)
  • 2020-12-03 02:58

    I ran across this same error with zero idea of what to do next. I tried the accepted answer and my project didn't have any breakpoints at all.

    Turns out I had an observer that I didn't remove and every few times I would push off/on the vc that contained it it would eventually crash with the op's error. I had to enable zombies to figure out which vc was causing the error. I had to manually go through the code line by line to realize I didn't remove the observer. Once I removed it everything worked fine.

    // not removing this caused the error
    playerItem?.addObserver(self, forKeyPath: #keyPath(AVPlayerItem.status),
                                    options: [.old, .new],
                                    context: &playerItemContext)
    
    0 讨论(0)
  • 2020-12-03 02:58

    In my case. I'm also using SQLite.swift to create database. The crashing happened when I tried to change a column data type of an existing table in code(which was not in the right way to do it), then inserted a tuple with new data type, then tried to print all the tuple out.

    Solution: Delete the .sqlite3 database file you have or delete the table with conflict data type and recreate them all.

    0 讨论(0)
  • 2020-12-03 03:01

    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.

    0 讨论(0)
  • 2020-12-03 03:03

    Clearly a lot of different causes for this, but for me I was using a DispatchGroup to keep track of multiple async tasks.

    I had forgotten to call dispatchGroup.enter() before one of the async tasks (but still calling dispatchGroup.leave() when it finished).

    Adding this in fixed the crash for me.

    0 讨论(0)
  • 2020-12-03 03:04

    I have found a solution for this, this may not be the perfect but kind a fix my problem.

    1. Go to target Build Settings -> Other Swift Flags -> check Debug Values added Remove everything except $(inherited) and -DDEBUG

    2. Remove Derived Data

    3. Clean and Run

    0 讨论(0)
提交回复
热议问题