Ios – Couldn’t register […] with the bootstrap server

bootstrappingiosios-simulatorxcode

I keep getting this error when launching my app on the iOS Simulator:

Couldn't register com.mycompany.MyApp 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.

I've read other reports of this error and it seems there is no obvious fix for it (restarting the iOS Simulator, restarting Xcode etc..)

At this point here's a list of things I've tried:

  • Restarting the Simulator
  • Restarting Xcode
  • Rebooting my machine
  • Deleting my app's Derived Data, and Cleaning
  • Deleting the iOS Simulator App Support directory
  • Reverting to a 2 weeks old version of the app (which was working 2 weeks ago)
  • Deleting the application in the Simulator (by clicking-holding on it and hitting the X button)
  • Upgrading Xcode form 4.1 to 4.2, and running the app both in iOS Simulator 4.3 and 5.0

Nothing worked, I still get the same bootstrap error.. Any (and at this point I really do mean ANY) suggestion would be appreciated.

Edit: Just wanted to add that the app runs fine on a device. I only get this error on the simulator…

Best Answer

As the GDB said:

This generally means that another instance of this process was already running or is hung in the debugger

So find out it and kill it. ;)
I restarted the mac, and it run successfully.


Tip: Well, this may be not work sometimes, so I strongly suggest that you press cmd+. to make sure that you do have stopped the simulator (or device). I find that in most cases the simulator (or device) will not stop exactly when it crashes. I rarely met this issue again with pressing the cmd+. every time it crashes or even just normal exit. Hope this will be helpful. :)