Mac 去掉文件属性@

去掉命令:

xattr -d com.apple.quarantine  xxxx

xattr -c xxxx

 

如果以上两个命令还是没有去掉@,那么查看文件属性:

如果是com.apple.macl属性, 这个属性是受SIP保护的。  

有两种方案:

1, 关闭SIP保护

    查看操作步骤: https://jingyan.baidu.com/article/f0e83a255eea0622e591013d.html

2.  将这个文件复制到另外一个存储器。u盘或者SD卡, 然后执行xattr -c xxxx

 

比较官方的解释: https://eclecticlight.co/2020/01/30/quarantine-sip-and-macl-macos-per-file-security-controls/

 

原文地址:https://www.cnblogs.com/dzqdzq/p/14746871.html