Could not attach to pid : “####” unable to attach [duplicate] Could not attach to pid : “####” unable to attach [duplicate] xcode xcode

Could not attach to pid : “####” unable to attach [duplicate]


Resetting the content and settings in the simulator worked for me. This is available on the iOS Simulator: Hardware -> Erase all Content and Settings


Kill the simulator, then re-build.


  1. I closed Xcode.
  2. On the simulator menu: go to Hardware -> Erase all content and settings.Erase all content and settings
  3. Open Xcode then build and run the application.

The above simple steps worked for me.