iOS-Xcode错误:由于系统完整性保护,无法附加到进程 [英] iOS - Xcode Error: cannot attach to process due to System Integrity Protection
问题描述
当我从XCode运行按钮运行应用程序共享扩展名,然后尝试共享文件时,XCode经常显示以下错误.有人知道是什么原因造成的吗?
When I running an application shared extension from XCode run button and then trying to share files, XCode shows the below error frequently. Anyone have any idea whats causing it?
错误:由于系统完整性保护,无法附加到进程中"
Error: "cannot attach to process due to System Integrity Protection"
推荐答案
系统完整性保护(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:
-
重新启动Mac.
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.
这篇关于iOS-Xcode错误:由于系统完整性保护,无法附加到进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!