ios 无法向引导服务器注册 [...]
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7853136/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Couldn't register [...] with the bootstrap server
提问by jeannicolas
I keep getting this error when launching my app on the iOS Simulator:
在 iOS 模拟器上启动我的应用程序时,我不断收到此错误:
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..)
我已经阅读了有关此错误的其他报告,似乎没有明显的修复方法(重新启动 iOS 模拟器、重新启动 Xcode 等...)
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
- 重启模拟器
- 重启Xcode
- 重新启动我的机器
- 删除我的应用程序的派生数据并清理
- 删除 iOS Simulator App Support 目录
- 恢复到应用程序的 2 周旧版本(在 2 周前运行)
- 在模拟器中删除应用程序(通过点击并点击 X 按钮)
- 将 Xcode 从 4.1 升级到 4.2,并在 iOS Simulator 4.3 和 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...
编辑:只是想补充一点,该应用程序在设备上运行良好。我只在模拟器上收到这个错误...
回答by Kjuly
As the GDB said:
正如 GDB 所说:
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.
所以找出它并杀死它。;)
我重新启动了 mac,它运行成功。
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. :)
提示:嗯,这有时可能不起作用,所以我强烈建议您按cmd+.以确保您确实停止了模拟器(或设备)。我发现在大多数情况下,模拟器(或设备)在崩溃时不会完全停止。我很少在每次崩溃甚至只是正常退出时按cmd+再次遇到这个问题.。希望这会有所帮助。:)
回答by Saif
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
我刚刚关闭了我的 xcode 并重新启动了我的设备(ipad2),它对我有用:) 你可以试试这个 ::无法在引导服务器上注册
回答by Atwood Wong
Another solution, go to clear the memory of the iphone simulator Simulator > recovery content and setting then run the program again.
另一种解决方案,去清除iphone模拟器模拟器的内存>恢复内容和设置然后再次运行程序。
回答by stom
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.
另外我的经验是:你可以通过表亲找到崩溃的地方。在这种情况下,开发人员通常会按“停止运行方案”,这可能会导致僵尸进程卡在设备中。但是如果你按下“COUNTINUE program execution”,调试器会终止进程,它不会变成僵尸。
回答by Simon Nilsson
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.
我不知道为什么,但它对我有用。
回答by R K
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..
不知道怎么清除。。
回答by Chelsea Wang
i just change the identifier and the app can work again.
我只需更改标识符,应用程序就可以再次运行。
回答by Belle B. Cooper
I opened Activity Monitor and searched for my app name, and found another instance of it listed. I used Activity Monitor to quit that instance, and the problem went away for me.
我打开 Activity Monitor 并搜索我的应用程序名称,发现它列出了另一个实例。我使用活动监视器退出该实例,问题就消失了。