This question already has an answer here:
- Failed to Attach to Process ID Xcode 34 answers
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?
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.
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.
- Close Xcode & simulator
- Reopen Xcode & rebuild
Above steps worked for me.
Clean the project,quit the simulator and then rebuild the app
来源:https://stackoverflow.com/questions/37582096/could-not-attach-to-pid-unable-to-attach