Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 548
S.Sohi Avatar asked Jun 02 '16 03:06

S.Sohi


People also ask

What is PID in Xcode?

The ID of the process that generated this event. macOS 10.2+

How do I edit schemes in Xcode?

To view your project's current schemes, click the scheme name in the toolbar of your project window. Xcode displays a pop-up menu with a list of current schemes at the top, and commands to edit, create, and manage schemes at the bottom. To view and modify your project's current schemes, select Manage Schemes.


2 Answers

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

like image 192
Himanshu Avatar answered Sep 28 '22 03:09

Himanshu


Kill the simulator, then re-build.

like image 24
dogsgod Avatar answered Sep 28 '22 05:09

dogsgod