Reply to Xcode: Could not attach to pid For me this scenario happened after a merge. The Solution was to remove an environment variable in Edit Scheme-> Run-> Arguments. I removed the environment variable and then added it again. That solved the issue. App & System Services Core OS Oct ’21