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:
- Choose the problematic scheme
- Edit Scheme
- Choose Run section
- Uncheck “Debug executable”
Then it should be working again