繁体   English   中英

无法启动iOS模拟器-xcode 6.0.1

[英]Unable to boot the iOS Simulator - xcode 6.0.1

我在OS X Mavericks 10.9.5上的Xcode 6.0.1中出错。

当我调试时,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。

我也遇到这个问题,并通过执行以下步骤找到了解决方案:-

 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.

> 在此处输入图片说明

希望这对任何人有帮助。

谢谢伙计们,但我终于找到了解决方案。 对于那些仍在寻找解决方案的人,以下是对我有帮助的一种:

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

如果没有选择,请确保已在路径“ Xcode->首选项->位置->命令行工具-> Xcode 6.0”下进行了选择。另一个选项是在iOS Simulator下执行“重置内容和设置”。这有帮助!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM