Bootstrap Server Error in Xcode IPHONE [duplicate]

I get the error below many times and this error makes it impossible to run my application unless I restart the whole Mac.

This is not caused due to changes in code.

ERROR :

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

What could be wrong?

Please give your suggestions, they are most welcome.


Solution 1:

UPDATE

You can check this link. This may solve your problem. Couldn't register with the bootstrap Server

For me it has worked when I have killed the Xcode and Simulator Apps using Activity Monitor and then restarting those apps.

You can read these following threads: iPhone - strange error when testing on simulator

http://discussions.apple.com/message.jspa?messageID=10416765

Solution 2:

I had this problem on my device while tethered and debugging. I had to restart my phone(iPhone 4). It makes sense based on the problems with the simulators...

Solution 3:

(I can't leave a comment, apologies). I was getting this error running iOS 4.3.1 on iPad. I was compiling on the iPad itself, not running in the simulator. I tried everything - clean then rebuild, restarting XCode, deleting the app on iPad, running through the simulator then trying the iPad again.

What worked for me was deleting the app on my iPad, then XCode -> Product -> Clean, then rebooting the iPad (hold power button to switch off, then switch back on), then XCode -> Product Run. I don't know if all those steps are necessary, but I do know they worked! Thanks to tapdancemobile for the suggestion to restart iPad, just as you'd restart the simulator :)

Solution 4:

I've had little luck with recovering from this problem once it happens. Killing processes rarely seems to succeed with this. I can tell you how I avoid it though: don't quit the simulator while your app is still running in the debugger.

I develop on a MacBook and to save battery I would often quit the simulator while debugging. Something gets munged up though and sometimes causes the app's process to get detached or hung or something to the point that XCode can no longer control it. After that this error begins appearing.

Always stop your app in XCode before quitting from the simulator and the problem won't happen.

I'm not sure what situation leads to it happening when debugging on the device directly. Maybe quitting the app by forcing it closed from Springboard? Or possibly disconnecting the cable while still debugging /shrug