launchd_sim crashing: could not create temporary state directory

三世轮回 提交于 2019-11-28 02:21:20

This error indicates that launchd_sim is unable to create its temporary state directory (/private/tmp/com.apple.CoreSimulator.SimDevice....launchd_sim).

This can happen if /private/tmp is deleted or has changed permissions.

There have been a high volume of reports of this issue lately. The reason appears to be that the restricted bit is getting set on /private/tmp, which is why some users have reported that disabling SIP acts as a workaround for this issue.

The correct fix is to remove the restricted bit from that path. If you boot your system into recovery mode and launch Terminal, you should be able to do this with:

chflags norestricted /Volumes/.../private/tmp

or a larger hammer:

rm -rf /Volumes/.../private/tmp
mkdir /Volumes/.../private/tmp
chmod 1777 /Volumes/.../private/tmp
chown root:wheel /Volumes/.../private/tmp

The problem is, for some reason, your system has orphaned launch_sim processes.

The solution is to:

  1. quit the simulator
  2. open Activity Montior and search for sim.
  3. manually Force Quit any launch_sim, ScriptAgent, or instruments processes.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!