无法启动iOS模拟器 - xcode 6.0.1

问题描述:

我在OS X Mavericks 10.9.5上的Xcode 6.0.1中有错误。无法启动iOS模拟器 - xcode 6.0.1

当我调试,iOS的8模拟器显示了这个错误:

Unable to boot the iOS Simulator.

几秒钟后Xcode中显示了这种其他错误:

An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)

然而,iOS的7模拟器的作品!

+0

今天我有一个模拟器的问题,我所需要做的就是退出模拟器,然后再试一次。也许这将工作... – 2014-09-26 23:20:09

+0

可能重复的[无法启动iOS 8模拟器](http://*.com/questions/25987302/unable-to-boot-ios-8-simulator) – 2014-10-14 14:54:05

+0

是的..同样的问题。 – felipelmota 2014-10-14 16:56:57

您是否设置了DYLD_INSERT_LIBRARIES?检查/etc/launchd.conf并在〜/ Library/Logs/DiagnosticReports中查找launchd_sim崩溃日志......如果是这样,这是

Unable to boot iOS 8 Simulator

+0

是的,就是这样..我没有看到您的评论前..谢谢.. – felipelmota 2014-10-14 04:41:07

确保你有路径下的“Xcode - >首选项 - >位置 - >命令行工具 - >选择Xcode 6.0,如果没有选择的话。另一种选择是在iOS模拟器下执行”Reset Content And设置“。希望这有助于!

+0

命令行工具与iOS模拟器无关。 – 2014-12-28 10:32:52

在这一点上,与XCode 5相比,XCode 6中的模拟器似乎存在很多问题。在各种部署目标和模拟器设备之间切换时,我特别看到了问题。模拟器通常会修复问题,如果不尝试重新启动XCode。

+0

不幸的是,大多数问题不需要模拟器本身,而是操作系统。不要回到Xcode 5进行测试,只需从Xcode的下载(在Xcode的首选项中)下载并安装iOS 7.1模拟器运行时。此外,大部分主要问题似乎都在iOS 8.2 beta中计算出来,包括在Xcode 6.2 beta中。 – 2014-12-28 10:32:19

我也有这个问题,通过执行以下步骤找到了解决办法愚弄的人: -

1) Initially i downloaded Xcode 6 library in Documentation section under the path Xcode --> Preferences --> Downloads and restart my xcode but didn't solve my problem. 

After that -> 

2) Downloaded and installed the iOS 7.1 Simulator under the path Xcode --> Preferences --> Downloads. 

     Restart xcode again and the problem solved. 

3) I am facing same issue again next morning. 

     Unsetting the DYLD_INSERT_LIBRARIES variable solves my problem:- 

a) Open terminal and type "sudo vi /etc/launchd.conf" command and press Enter 
b) Press I "Insert" mode and change this 

      "setenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib" 

            to this 

       "unsetenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib" 

     and press esc to exit from insert mode. 

    c) Save changes by typing ":wq" Press Enter 
    d) Reboot your system and problem soloved. 

enter image description here

Prior to that i didn't found any iOS version in front of each listed devices 
but after installation or by unsetting DYLD_INSERT_LIBRARIES variable i found the same in front of each devices. 

> enter image description here

希望这可以帮助任何人。

+0

点3帮助我..谢谢! – felipelmota 2014-10-14 16:56:06

感谢小伙子们,但我终于找到了解决方案。 对于那些仍在寻找解决方案的人来说,下面是帮助我的那个:

有一个文件/etc/launchd.conf不会被Yoseph使用。我刚删除它。您也可以在该文件中取消设置DYLD_INSERT_LIBRARIES环境变量。希望这可以帮助你。