After updating Xcode to version 12.5 and using simulator 14.5, I'm getting disconnected all the time from the debugger. Please can someone help me?
I also get this: Domain: IDEDebugSessionErrorDomain Code: 4
I talked to someone at Apple, and they gave me a temporary solution. As others already have said, larger apps with lots of dependencies are taking too long to launch. This is causing the debugger to abort and time out. To fix that, follow the steps:
- Create a file called
.lldbinit
on your home directory (~
) - Add this line to the file:
settings set plugin.process.gdb-remote.packet-timeout 300
- Restart Xcode and try again
It's working fine after that.