Reply to Xcode: Could not attach to pid Deleting DerivedData, closing and reopening Xcode did the trick for me on Xcode 12.5.1 App & System Services Core OS Aug ’21