iOS Simulator Frequently hangs; can't register with the bootstrap server

Originator:bstovold
Number:rdar://10834988 Date Originated:9th Feb 2012
Status:Closed Resolved:
Product:Developer Tools Product Version:Xcode 4.2.1 / OS X 10.7.2
Classification:Crash/ Hang Reproducible:Sometimes
 
When trying to run an application on the iOS Simulator, it hangs on opening with the following error:

"Couldn't register com.my.app.name.here with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”."

Steps to Reproduce:

Run an app in the iPhone 4.3 or 5.0 simulator, stop it at a breakpoint in gdb, then either a) build and run again or b) press the home button, quit the simulator and then build and run. 

Expected Results:

The app launches and runs.

Actual Results:

gdb hangs with the following error: "Couldn't register com.my.app.name.here with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”."

Regression:

Notes:

Quitting the Simulator, clearing Derived Data, quitting Xcode... none of this resolves the issue. The only way to get the simulator working again is to either a) restart the machine or b) login as another administrator and kill my developer user's launchd process. This is very disruptive and happens frequently on the latest build, especially when switching between simulators.

It is well-documented here: http://stackoverflow.com/questions/788277/iphone-strange-error-when-testing-on-simulator

Comments

Duped as 10955803

Duped as rdar://10970480

Classification: Serious bug.

Duped as rdar://10964896

Classification: Serious bug.

related:

http://openradar.appspot.com/10330930


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!