41

I just updated to Xcode 7.3.1 and my project crashes with the same error after the launch screen displays on the iOS simulator.

The error is:

"Could not attach to pid : “1712” unable to attach"

Then I tried running another project and I got:

"Could not attach to pid : “2025” unable to attach"

Any solutions?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
S.Sohi
  • 671
  • 2
  • 6
  • 9

6 Answers6

37

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

Community
  • 1
  • 1
Himanshu
  • 2,832
  • 4
  • 23
  • 51
22

Kill the simulator, then re-build.

dogsgod
  • 6,267
  • 6
  • 25
  • 53
  • 5
    Actually, you don't even need to kill the simulator, re-building make it work for me. – n3wbie Oct 17 '16 at 08:41
  • 2
    I usually just re-**run** it. But re-**building** is what's intended here. – mfaani Aug 07 '18 at 19:24
  • 4
    None of these worked for me. killing the simulator, deleting the app, switching simulator, rebuilding, deleting derived data, cleaning build folder, cleaning project, none worked. – Hedylove Jun 13 '19 at 20:30
18
  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.

Lehlohonolo_Isaac
  • 1,426
  • 13
  • 15
9
  1. Close Xcode & simulator
  2. Reopen Xcode & rebuild

Above steps worked for me.

Will Gwo
  • 403
  • 3
  • 6
7

In my case Xcode 8.0 after this error,just rebuild again project it solves this problem.

There is no need for reset app content in iPhone device.

harp
  • 123
  • 1
  • 4
-1

Clean the project,quit the simulator and then rebuild the app

Ash
  • 19
  • 1