且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS-Xcode错误:由于系统完整性保护,无法附加到进程

更新时间:2023-12-03 22:23:28

系统完整性保护(SIP),也称为无根,是OS X 10.11中的一项新安全功能.默认情况下,它甚至禁止管理员访问/修改根目录.遵循这些步骤禁用SIP:

System Integrity Protection(SIP) aka rootless is a new security feature in OS X 10.11. By default it disables even the administrator to access/modify the root. Follow these steps to disable SIP:

  1. 重新启动Mac.

  1. Restart your Mac.

在OS X启动之前,按住Command-R并按住不放,直到看到Apple图标和进度条.释放.这双靴子 您进入恢复状态.

Before OS X starts up, hold down Command-R and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery.

从实用工具"菜单中,选择终端".

From the Utilities menu, select Terminal.

在提示符下准确键入以下内容,然后按Return键:

At the prompt type exactly the following and then press Return:

 csrutil disable

  • 终端应显示一条消息,说明已禁用SIP.

  • Terminal should display a message that SIP was disabled.

    从菜单中,选择重新启动.

    您可以按照上述步骤重新启用SIP,但改用csrutil enable.

    You can re-enable SIP by following the above steps, but using csrutil enable instead.