Domain: IDEDebugSessionErrorDomain

Lito
Dec 5, 2021

Xcode 11 running on simulator failed with error Could not attach to pid

If you encounter a strange problem, every time in the command Xcode Cmd+R I run my project in the simulator, it will fail with errors like the image to the side, I found the solution to fix it, and it is very simple and stupid, I forgot when this property was changed, but the solution was:

  1. Choose the problematic scheme
  2. Edit Scheme
  3. Choose Run section
  4. Uncheck “Debug executable”

Then it should be working again

--

--

Lito

iOS developer at Kairos DS | iOS Lover | Valencian living on Madrid | Sometimes I try to be a writer