xcode:无法打开模拟器:保存时出错 com.apple.lsdidentifiers.plist:(空)

xcode: can not open simulator: Error saving com.apple.lsdidentifiers.plist : (null)

这是登录控制台。 2016-10-19 4:35:30.377 PM com.apple.CoreSimulator.CoreSimulatorService[761]:保存错误 /Users/myusername/Library/Developer/CoreSimulator/Devices/14ABD200-69D3-441D-8FAA-731F5F00F678/data/tmp/com.apple.lsdidentifiers.plist : (null)

/Library/Developer/CoreSimulator/Devices/14ABD200-69D3-441D-8FAA-731F5F00F678/data/tmp/ 是一个空文件夹。

与此同时,我的 xcode 无法正确加载 xib 或故事板。 "Internal error occurred, Editing functionality maybe limited"

我清除了 /Users/myusername/Library/Developer/CoreSimulator/Devices/ 文件夹,没有帮助,重新安装 xcode 也没有用。

环境:OS:EI 10.11.6,xcode:8.0 simulator:Version 10.0(SimulatorApp-700.5.3

该错误消息是良性的,可以忽略。抱歉系统日志中的噪音。此问题已在 Xcode 8.1 测试版中得到解决。

如果您在 CoreSimulatorService 为 运行 时删除了 ~/Library/Developer/CoreSimulator/Devices,该服务将处于不一致状态。您应该 SIGKILL 它以使其以新状态重新启动。

您的 'Internal error occurred, Editing functionality maybe limited' 错误消息可能与这些事情无关。大多数用户看到这一点是因为他们试图同时使用 Xcode.app 的多个副本。可以安装多个 Xcode,但一次只能使用一个。如果这不是您遇到的问题,您将需要提供有关该错误的更多信息。

通过关闭 El Capitan 中的系统完整性保护修复了它。 我完全不知道我是什么时候更新 mac os 并遇到这个问题的。 直到我注意到我无法启动 mysql,它有类似的问题 'Could not create unix socket lock file /tmp/mysql.sock.lock'

然后我以为我的 os 设置出了问题。

步骤: 重新启动您的 Mac。 在 OS X 启动之前,按住 Command-R 并一直按住,直到您看到一个 Apple 图标和一个进度条。发布。这会引导您进入 Recovery。 从实用程序菜单中,select 终端。 在提示符下准确键入以下内容,然后按 Return:csrutil disable 终端应显示 SIP 已禁用的消息。 从  菜单中,select 重新启动

了解更多信息https://apple.stackexchange.com/questions/193368/what-is-the-rootless-feature-in-el-capitan-really