简体   繁体   English

Xcode 6模拟器,无法启动错误

[英]Xcode 6 simulator ,unable to boot error

I have installed latest Xcode 6 and try to run my project on iOS 8 simulator.It gives error as "unable to boot iOS simulator". 我已经安装了最新的Xcode 6并尝试在iOS 8模拟器上运行我的项目。它给出了“无法启动iOS模拟器”的错误。 I have tried all stack overflow answers but not able to fix this. 我已经尝试了所有堆栈溢出答案,但无法修复此问题。

I was facing the same issue and finally it is resolved. 我面临着同样的问题,最终解决了。 Thanks to apple who helped me. 感谢帮助我的苹果。

For those who are still looking for solution, here is the one which helped me: 对于那些仍在寻找解决方案的人来说,这是帮助我的人:

Just unset DYLD_INSERT_LIBRARIES environment variable in the /etc/launchd.conf or ~/.launchd.conf file. 只需在/etc/launchd.conf或〜/ .launchd.conf文件中取消设置DYLD_INSERT_LIBRARIES环境变量即可。 Which you can edit by "sudo vi /etc/launchd.conf" command. 您可以通过“sudo vi /etc/launchd.conf”命令编辑。 remove the above flag save it by using "ZZ" (captial Z) command and reboot the system. 删除上面的标志使用“ZZ”(captial Z)命令保存它并重启系统。 It works like a charm. 它就像一个魅力。 Hope this helps you all. 希望这能帮到你们所有人。

Following are the steps for solved above issue: 以下是解决上述问题的步骤:

  1. Search launchd.conf file in your mac 在mac中搜索launchd.conf文件
  2. If not found then create from Terminal with help of command 如果未找到,则在命令帮助下从终端创建

    ~ user$ sudo touch /etc/launchd.conf ~user $ sudo touch /etc/launchd.conf

  3. Terminal will ask you machine password 终端会问你机器密码

  4. Then Open created file with help of command for EDIT, if terminal give you error as permission failed 然后在EDIT命令的帮助下打开创建的文件,如果终端在权限失败时给出错误

    ~ user$ sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/launchd.conf ~user $ sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/launchd.conf

  5. Then open file manually from /etc/launchd.conf (Shift+cmd+g) and enter /etc/ (TextEdit software) 然后从/etc/launchd.conf手动打开文件(Shift + cmd + g)并输入/ etc /(TextEdit软件)

  6. Remove the "DYLD_INSERT_LIBRARIES" line and save the file. 删除“DYLD_INSERT_LIBRARIES”行并保存文件。
  7. Restart your machine. 重启你的机器。
  8. Xcode should work. Xcode应该工作。

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

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