【问题标题】:iPhone simulator hangs immediately upon launchiPhone模拟器在启动后立即挂起
【发布时间】:2011-05-24 03:13:10
【问题描述】:

每当我尝试在 Xcode 中启动 iphone 模拟器(通过 Build & Run)时,模拟器都会出现并立即与沙滩球挂起。

我尝试过构建和运行一个空白项目,重新启动 Xcode 和我的机器,但到目前为止没有任何帮助。我正在运行 Snow Leopard 10.6.5、Xcode 3.2.5 和 Simulator 4.2。

我的控制台中出现的唯一错误是:

12/11/10 6:03:02 PM installd[1134] CFPreferences: user home directory at file://localhost/Users/Old%20Mac/Library/Application%20Support/iPhone%20Simulator/4.2/ is unavailable. User domains will be volatile.
12/11/10 6:03:42 PM com.apple.launchd.peruser.502[117] (com.apple.iPhoneSimulator:com.apple.mobile.installd[1155]) Exited with exit code: 255
12/11/10 6:03:42 PM com.apple.launchd.peruser.502[117] (com.apple.iPhoneSimulator:com.apple.mobile.installd) Throttling respawn: Will start in 10 seconds

模拟器在黑屏时保持冻结状态:![冻结!。]

任何帮助将不胜感激——谢谢!

【问题讨论】:

  • 你有没有想过这个问题?

标签: iphone ios4 ios-simulator


【解决方案1】:

我重新启动了我的 Macbook Pro 并为我修复了它。

【讨论】:

    【解决方案2】:

    如果您使用的是双显卡 Mac(如 MacBook Pro),如果视频系统无法切换到独立显卡,有时也会发生这种情况。重置 SMC 解决了这个问题:http://support.apple.com/kb/ht3964

    【讨论】:

      【解决方案3】:

      打开显示黑屏的iOS模拟器,然后您将能够在顶部看到iOS模拟器菜单

      iOS 模拟器 -> 重置内容和设置应该可以工作

      【讨论】:

        【解决方案4】:

        在全新安装最新的 SDK 时遇到了同样的问题(iOS 模拟器永远加载黑屏,也使用原始 Xcode 模板)。

        您可以在这里找到解决方案:https://discussions.apple.com/thread/2611612?threadID=2611612。 删除 /Library/Application Support/iPhone Simulator 对我有用。 IOS Simulator 然后在退出时重新创建文件夹。除了“/user/...”之外,它还包含一个目录“/4.3/...”。

        【讨论】:

        • 对我来说,我的主目录中是“~/Library/Application Support/iPhone Simulator”。
        • 不确定其他人是否会发生这种情况,但您的 Spotlight 搜索可能会显示旧版本的 iOS 模拟器。尝试直接通过终端打开当前Xcode的iOS模拟器:open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/
        • @NeilSarkar:你应该让你的评论成为答案
        • 这为我修好了,谢谢。请注意,在较新的 Xcode 版本中,此路径已移至 ~/Library/Developer/CoreSimulator
        【解决方案5】:

        您是否以路径指定的同一用户身份登录,否则可能会出现权限问题?也许你可以尝试重新安装 xcode。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2014-03-14
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-12-17
          • 2012-02-21
          • 2011-07-23
          • 1970-01-01
          相关资源
          最近更新 更多