Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 12.5.1 - Could not attach to pid: "####" - Lost Connection

Error Message

I am getting this error message whenever I try to run any of my iOS projects on the simulator. How do I get rid of this?

I have already tried Cleaning the build folder, and erasing all content and settings of the simulator, tried different simulators as well as closing and starting the Xcode again.

Details

Could not attach to pid : “3386”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: lost connection
User Info: {
    DVTRadarComponentKey = 855031;
    RawUnderlyingErrorMessage = "lost connection";
}
--


System Information

macOS Version 12.0 (Build 21A5304g)
Xcode 12.5.1 (18212) (Build 12E507)
Timestamp: 2021-08-25T12:20:16+05:00
like image 539
Saad Sadiq Avatar asked Jan 29 '26 04:01

Saad Sadiq


1 Answers

It might be an issue with authorization, Try below lines in terminal.

sudo DevToolsSecurity -enable

like image 190
Arvind Seth Avatar answered Jan 30 '26 19:01

Arvind Seth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!