【问题标题】:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is not owned by root/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim 不属于root
【发布时间】:2015-02-08 05:21:40
【问题描述】:

Xcode 6.1 组件安装完成后出现错误。 Xcode 安装程序是其他 mac 的副本。请帮助我如何解决 dyld_sim 错误.... 谢谢

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is not owned by root.

【问题讨论】:

  • 请澄清您的具体问题或添加其他详细信息以准确突出您的需要。正如目前所写的那样,很难准确地说出你在问什么。请参阅How to Ask page 以获得澄清此问题的帮助。

标签: ios xcode permissions


【解决方案1】:

终端中运行以下命令

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

【讨论】:

    【解决方案2】:

    我在终端上使用了这个命令:

    sudo chown root /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim
    

    此命令将文件 dyld_sim 的所有权更改为根目录。

    【讨论】:

    • 在 chown 之后,我收到此错误“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is group writable” .有什么想法吗?
    • chmod g-w /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim 为我修复了它。像@kev 一样,我的 Xcode 拒绝运行,抱怨“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim”的“组可写”我通过进入根目录并使用“组删除可写”(gw)的“chmod”选项来解决这个问题。须藤可能会奏效。无论如何,xcode 现在在 root 和我常用的管理员帐户中运行。
    • 我很惊讶为什么问这个问题的人没有选择你的好答案作为答案!
    【解决方案3】:

    经过一番研究,我也遇到了同样的问题,我找到了解决方案,

    在终端输入以下命令:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    享受 Xcode 快乐编程的两个版本:)

    【讨论】:

      【解决方案4】:

      点击退出并再次重新启动 Xcode,它将正常打开。刚遇到完全相同的问题,重启后,Xcode 打开并正常工作。

      【讨论】:

      • 虽然这看起来很奇怪而且它不应该工作它只是在 Xcode 6.1 的副本上为我工作,但我正在以非常慢的连接更新到 6.2,我需要继续工作。
      • 感谢所有兄弟,我通过在公司更换另一台 Mac Mini 解决了这个问题。我认为问题是我们必须使用安装程序文件而不是其他 mac 的副本
      猜你喜欢
      • 2012-07-10
      • 2021-01-11
      • 1970-01-01
      • 1970-01-01
      • 2022-11-09
      • 2019-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多