Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
326 views
in Technique[技术] by (71.8m points)

ios - launchd_sim crashing: could not create temporary state directory

The issue is fixed with recent update of Mac OSX.

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 quit unexpectedly"

  2. "Unable to boot the iOS simulator"

How to resolve such type of issues?

Detailed exception report:

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

EDIT:

To check disk permissions:

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

Output:

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

To repair disk permissions:

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

Output:

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

These commands did the trick for me:

sudo chown root:admin /tmp; sudo chmod 1777 /tmp
sudo chown root:wheel /private/tmp; sudo chmod 1777 /private/tmp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...