Failed to get pid info for pid 0: Operation not permitted xcode

Hello All

I get this error message when trying to build any project on Xcode. In addition it doesn't not attach any project to the simulator. I have already tried the normal troubleshooting like restarting computer, erasing all content from the simulator and updating my macOS version. I suspect it has something to do with the certificates

Failed to get pid info for pid 0: Operation not permitted xcode

Failed to get pid info for pid 0: Operation not permitted xcode
 
 
Q