命令行下执行

xattr -c file

或者禁止该项

defaults write com.apple.LaunchServices LSQuarantine -bool NO

启用该项

defaults write com.apple.LaunchServices LSQuarantine -bool YES

禁止.DS_store

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

恢复.DS_store

defaults delete com.apple.desktopservices DSDontWriteNetworkStores