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

后端 未结 12 1198
走了就别回头了
走了就别回头了 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: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)
    

提交回复
热议问题