Xcode 4.2 中的 Bootstrap 错误 iOS 5.0 模拟器 [英] Bootstrap error iOS 5.0 simulator in Xcode 4.2

查看:46
本文介绍了Xcode 4.2 中的 Bootstrap 错误 iOS 5.0 模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试清除所有目标和缓存、重新启动 Xcode、重置模拟器、终止所有模拟器进程并重新启动我的笔记本电脑,但没有任何效果,并且仍然显示以下错误:

I have tried to clean out all targets and caches, restart Xcode, reset the simulator, kill all simulator processes and also restart my laptop, but nothing works and the following error still shows:

无法向引导服务器注册 com.yourcompany.myApp.错误:未知错误代码.这通常意味着该进程的另一个实例已经在运行或挂在调试器中.

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

推荐答案

如果您在模拟器中运行通用应用程序,请在收到此错误后为其他设备构建.

If you are running a Universal app in the simulator, build for the other device after you get this error.

因此,如果您收到 iPad sim 的错误,请在不点击停止"或关闭 iPad sim 的情况下为 iPhone 构建.在这种情况下,它将为 iPhone 构建,然后一旦它运行,就为 iPad 构建……反之亦然.这是一个无需重新启动的快速修复,但它似乎在一段时间后停止工作.

So, if you got the error for the iPad sim, build for the iPhone without hitting "Stop" or closing the iPad sim. That will build for the iPhone in this case, then once it's running, build for the iPad...or vice versa. This is a quick fix without restarting, but it seems to stop working after a while.

有时它也与一些 AppDelegate 方法有关,例如 applicationWillTerminate、applicationWillEnterForeground 等.请检查您的 appDelegate 方法是否有任何错误.

It's also sometimes related to some of the AppDelegate methods like applicationWillTerminate, applicationWillEnterForeground, etc. Check your appDelegate methods for any bugs.

这篇关于Xcode 4.2 中的 Bootstrap 错误 iOS 5.0 模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆