launchd_sim崩溃:无法创建临时状态目录 [英] launchd_sim crashing: could not create temporary state directory

查看:440
本文介绍了launchd_sim崩溃:无法创建临时状态目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mac OSX的最新更新已解决该问题.

The issue is fixed with recent update of Mac OSX.

我在运行OSX El Capitan(10.11.6)的Mac Mini上使用Xcode 8.当我在simultor上部署我的应用程序时,会显示以下错误消息:

I am using Xcode 8 on Mac Mini running OSX El Capitan (10.11.6). When I deploy my app on simultor is shows following error messages:

  1. "launchd_sim意外退出"

无法启动iOS模拟器"

如何解决此类问题?

详细的异常报告:

Process:          launchd_sim [16545]

Path:             /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/sbin/launchd_sim

Identifier:       launchd_sim

Version:          4.0.0 (972.1.5)

Code Type:        X86-64 (Native)

Parent Process:   ??? [1]

Responsible:      launchd_sim [16545]

User ID:         501



Date/Time:        2016-10-25 13:53:29.247 +0530

OS Version:       Mac OS X 10.11.6 (15G1004)

Report Version:   11

Anonymous UUID:  6844F1F8-F647-09F6-8FB0-A7B9C14F843B



Time Awake Since Boot: 17000 seconds



System Integrity Protection: enabled



Crashed Thread:   0

Dispatch queue: com.apple.main-thread



Exception Type:   EXC_BAD_INSTRUCTION (SIGILL)

Exception Codes:  0x0000000000000001, 0x0000000000000000

Exception Note:   EXC_CORPSE_NOTIFY



Application Specific Information: could not create temporary state directory

要检查磁盘权限:

sudo /usr/libexec/repair_packages --verify --standard-pkgs /

输出:

Permissions differ on "tmp", should be drwxrwxrwt , they are lrwxr-xr-x .

要修复磁盘权限:

sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /

输出:

Permissions differ on "tmp", should be drwxrwxrwt , they are lrwxr-xr-x .
Unable to set owner & group on "tmp". Error 1: Operation not permitted
Unable to set permissions on "tmp". Error 1: Operation not permitted

推荐答案

此错误表示launchd_sim无法创建其临时状态目录(/private/tmp/com.apple.CoreSimulator.SimDevice....launchd_sim).

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

如果删除/private/tmp或更改了权限,则可能会发生这种情况.

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

最近有大量关于此问题的报告.原因似乎是在/private/tmp上设置了受限位,这就是为什么一些用户报告说禁用SIP可以解决此问题的原因.

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.

正确的解决方法是从该路径中删除受限位.如果您将系统引导到恢复模式并启动Terminal,则应该能够使用以下方法做到这一点:

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

或更大的锤子:

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

这篇关于launchd_sim崩溃:无法创建临时状态目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆