Couldn't register […] with the bootstrap server

泪湿孤枕 提交于 2019-12-28 04:00:11

问题


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...


回答1:


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. :)




回答2:


I just closed my xcode & restart my device(ipad2) and it works for me :) You can try this :: Couldn't register with the bootstrap Server




回答3:


Another solution, go to clear the memory of the iphone simulator Simulator > recovery content and setting then run the program again.




回答4:


i just change the identifier and the app can work again.




回答5:


I had to change my bundle identifier finally

No matter you reboot all devices and cleanup all , it gets stuck hard in the debugger..

don't know how to clear it..




回答6:


As I experienced, device (or simulator) restart does solve the issue, BUT it would be better not to couse it.

Also my experience is that: You can find the place of crash by cousing it. In such time developers usually press "STOP the running scheme" this could cause zombie process stuck in device. BUT if you press "COUNTINUE program execution", debugger will terminate the process, it will not become a zombie.




回答7:


I had this error too and I noticed that it works for me if you close the simulator and stop the program and then change your company name.

I don't know why but it works for me.



来源:https://stackoverflow.com/questions/7853136/couldnt-register-with-the-bootstrap-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!