Xcode 6 simulator ,unable to boot error

2019-01-26 19:24发布

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". I have tried all stack overflow answers but not able to fix this.

2条回答
看我几分像从前
2楼-- · 2019-01-26 19:42

Following are the steps for solved above issue:

  1. Search launchd.conf file in your mac
  2. If not found then create from Terminal with help of command

    ~ 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

    ~ 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)

  6. Remove the "DYLD_INSERT_LIBRARIES" line and save the file.
  7. Restart your machine.
  8. Xcode should work.
查看更多
贼婆χ
3楼-- · 2019-01-26 19:51

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. Which you can edit by "sudo vi /etc/launchd.conf" command. remove the above flag save it by using "ZZ" (captial Z) command and reboot the system. It works like a charm. Hope this helps you all.

查看更多
登录 后发表回答