I am getting the following error after migrating from one mac to another using time machine.
Could not attach to pid
Ensure "project title"
After opening a bug report to Apple, they suggested me to:
groups command. it was the case. Use this command: dscacheutil -q groupsudo /usr/sbin/DevToolsSecurity -status. The status was unknown for me.sudo /usr/sbin/DevToolsSecurity -enable. This solved finally my issue!