关闭MacOS的rootless[安全]机制
如果Mac的辅助功能无法添加其他应用 [没意外会遇到权限问题]
添加vmware允许屏幕录制的权限
命令操作截图
打开安全机制
最主要原因VMWare没有录屏权限了,
但是在不升级情况下在security->Privacy->Screen Recording是无法添加进去的,只能先关闭 csrutil.
#Rootless机制将成为对抗恶意程序的最后防线[记得要改回来!!!]
缩略版步骤 [ 跟上面的 1-4 步骤一样,如果操作过的话,可以忽略直接进行下一步]:
1.尝试关闭Rootless,重启按住 Command+R 进入恢复模式 打开Terminal
2.输入csrutil disable
3.如果要恢复 csrutil enable
查看csrutil 状态
csrutil status
System Integrity Protection status: enabled.
应该是升级导致/Library/Application\ Support/com.apple.TCC损坏或权限异常,出现了问题.
sudo chmod 777 /Library/Application\ Support/com.apple.TCC
sudo rm -rf /Library/Application\ Support/com.apple.TCC/TCC.db
如果权限不足,执行第一个步骤
进入系统后打开终端输入以下命令(中途可能要求你输入密码,输入本机登陆密码即可)
#以下三句是三句不同命令
tccutil reset All com.vmware.fusion
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'insert into access values ("kTCCServiceScreenCapture", "com.vmware.fusion", 0, 1, 1, "", "", "", "UNUSED", "", 0,1565595574)'
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'insert into access values ("kTCCServiceListenEvent", "com.vmware.fusion", 0, 1, 1, "", "", "", "UNUSED", "", 0,1565595574)'
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'insert into access values ("kTCCServicePostEvent", "com.vmware.fusion", 0, 1, 1, "", "", "", "UNUSED", "", 0,1565595574)'
MacBook-Pro:~ admin$ sudo chmod 777 /Library/Application\ Support/com.apple.TCC
Password:
MacBook-Pro:~ admin$ sudo rm -rf /Library/Application\ Support/com.apple.TCC/TCC.db
MacBook-Pro:~ admin$ tccutil reset All com.vmware.fusion
MacBook-Pro:~ admin$ sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'insert into access values ("kTCCServiceScreenCapture", "com.vmware.fusion", 0, 1, 1, "", "", "", "UNUSED", "", 0,1565595574)'
MacBook-Pro:~ admin$
MacBook-Pro:~ admin$ sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'insert into access values ("kTCCServiceListenEvent", "com.vmware.fusion", 0, 1, 1, "", "", "", "UNUSED", "", 0,1565595574)'
MacBook-Pro:~ admin$
MacBook-Pro:~ admin$ sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'insert into access values ("kTCCServicePostEvent", "com.vmware.fusion", 0, 1, 1, "", "", "", "UNUSED", "", 0,1565595574)'
MacBook-Pro:~ admin$
1.尝试关闭Rootless,重启按住 Command+R 进入恢复模式 打开Terminal
2.启用 csrutil enable
查看csrutil 状态
csrutil status
System Integrity Protection status: enabled.