Error when starting Xcode simulator

Lately, I am getting an error whenever I am starting up an Xcode simulator. The error message goes something like this:

“Cold not attach to pid: “12345”

Domain: IDEDebugSessionErrorDomain

Code: 3

Failure Reason: Error 1

Error 1

Domain: IDEDebugSessionErrorDomain

Code: 3

–“

Debugging it would be really helpful to me right now. I tried several online guides but none worked, so friendly suggestions are more than welcome right now…

hey there!
It’s an issue with authorization.
Try this in the Terminal:
sudo DevToolsSecurity -enable