ios – launchd_sim崩溃:无法创建临时状态目录

ios – launchd_sim崩溃:无法创建临时状态目录,第1张

概述The issue is fixed with recent update of Mac OSX. 我在运行OSX El Capitan(10.11.6)的Mac Mini上使用Xcode 8.当我在simultor上部署我的应用程序时显示以下错误消息: >“launchd_sim意外退出” >“无法启动iOS模拟器” 如何解决此类问题? 详细的例外报告: Process: la

The issue is fixed with recent update of Mac OSX.

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

>“launchd_sim意外退出”
>“无法启动iOS模拟器”

如何解决此类问题?

详细的例外报告:

Process:          launchd_sim [16545]Path:             /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator.sdk/sbin/launchd_simIDentifIEr:       launchd_simVersion:          4.0.0 (972.1.5)Code Type:        X86-64 (Native)Parent Process:   ??? [1]Responsible:      launchd_sim [16545]User ID:         501Date/Time:        2016-10-25 13:53:29.247 +0530OS Version:       Mac OS X 10.11.6 (15G1004)Report Version:   11Anonymous UUID:  6844F1F8-F647-09F6-8FB0-A7B9C14F843BTime Awake Since Boot: 17000 secondsSystem Integrity Protection: enabledCrashed Thread:   0dispatch queue: com.apple.main-threadException Type:   EXC_BAD_INSTRUCTION (SIGILL)Exception Codes:  0x0000000000000001,0x0000000000000000Exception Note:   EXC_CORPSE_NOTIFYApplication 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",they are lrwxr-xr-x .Unable to set owner & group on "tmp". Error 1: Operation not permittedUnable to set permissions on "tmp". Error 1: Operation not permitted
解决方法 此错误表示launchd_sim无法创建其临时状态目录(/private/tmp/com.apple.CoreSimulator.SimDevice….launchd_sim).

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

最近有关于这个问题的大量报道.原因似乎是限制位在/ private / tmp上设置,这就是为什么有些用户报告禁用SIP作为此问题的解决方法.

正确的解决方法是从该路径中删除受限制的位.如果您将系统启动到恢复模式并启动终端,您应该可以执行以下 *** 作:

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

或者更大的锤子:

rm -rf /Volumes/.../private/tmpmkdir /Volumes/.../private/tmpchmod 1777 /Volumes/.../private/tmpchown root:wheel /Volumes/.../private/tmp
总结

以上是内存溢出为你收集整理的ios – launchd_sim崩溃:无法创建临时状态目录全部内容,希望文章能够帮你解决ios – launchd_sim崩溃:无法创建临时状态目录所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1067445.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存