'LLDB RPC server freezes app

For the past months I have not been able to debug macOS or iOS apps through Xcode. What happens is the following:

  1. Build and run app from Xcode.
  2. Xcode says app is running, but no app has appeared and no debug output from app either.
  3. Kill the process lldb-rpc-server.
  4. App appears and runs as normal, but Xcode is no longer debugging.
  5. Start a new debugging session by attaching it to the app's process.
  6. App freezes again, until lldb-rpc-server is killed.

This OpenRadar has the same description.

I have tried re-installing Xcode (including command-line tools), but it didn't help. Any ideas?


Xcode: Version 9.3.1 (9E501)

MacOS: 10.13.4 (17E199)



Solution 1:[1]

The cause of this was that I had installed a GDB/LLDB-extension called Voltron. I was unaware that the installation also created/modified the .lldbinit in the home folder. Removing this file fixed the issue. See also this issue for Voltron.

Got some very good help from Apple.

Solution 2:[2]

I had received this warning msg when device was locked and I was running app on device, so when device is unlocked this warning goes

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 T'n'E
Solution 2 deepOcean