无法启动iOS模拟器 – xcode 6.0.1

我在OS X Mavericks 10.9.5上的Xcode 6.0.1中有一个错误。

当我debugging时,iOS 8模拟器显示此错误:

无法启动iOS模拟器。

几秒钟后Xcode显示了这个错误:

运行时遇到错误(域= DTiPhoneSimulatorErrorDomain,代码= 2)

但是,iOS 7模拟器的作品!

你有DYLD_INSERT_LIBRARIES集吗? 检查/etc/launchd.conf并在〜/ Library / Logs / DiagnosticReports中查找launchd_sim崩溃日志…如果是这样,这是一个愚蠢的

无法启动iOS 8模拟器

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

我也有这个问题,并通过执行以下步骤find解决scheme:

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. 

在这里输入图像说明

 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. 

> 在这里输入图像说明

希望这有助于任何人。

谢谢小伙子们,但我终于find了一个解决scheme。 对于那些仍在寻求解决scheme的人来说,帮助我的是:

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

确保你有path下的“Xcode – >首选项 – >位置 – >命令行工具 – ”selectXcode 6.0,如果没有select。另一种select是在iOS模拟器下执行“重置内容和设置”。这有助于!