Gatekeeper is macOS protection around downloaded software. Treat it as a safety layer — not an annoyance to disable by default.
Apple warns that unsigned or unnotarized apps can expose your Mac and personal data to malware. Gatekeeper is doing its job when it flags software that hasn't gone through Apple's notarization process. Only override a block when you trust the source and have verified what the file is.
Prefer the normal Privacy & Security approval flow before reaching for terminal commands.
If macOS blocks a trusted app, Control-click the app in Finder and choose Open. This gives you a one-time option to bypass the block for that specific app. The app is then remembered as an exception — you won't need to do this again for the same file.
Go to System Settings → Privacy & Security. Scroll down — if a recently blocked app is waiting for approval, you'll see an "Open Anyway" button. Click it and confirm.
Some Mac troubleshooting workflows use terminal commands to inspect or remove quarantine metadata. Don't make this your first move. Use normal System Settings approval first, verify the file source, and keep command-line fixes limited to files you actually trust.
xattr -p com.apple.quarantine "/path/to/file.dmg"xattr -l "/path/to/file-or-app"xattr -d com.apple.quarantine "/path/to/file.dmg"xattr -dr com.apple.quarantine "/Applications/App Name.app"xattr -dr com.apple.quarantine "/path/to/extracted-folder"If macOS says "permission denied," retry with sudo only for a file you fully trust: sudo xattr -dr com.apple.quarantine "/Applications/App Name.app"
A "damaged" message can mean several things:
Re-extract first, confirm the download size matches, then move to Gatekeeper troubleshooting. The warning is useful when the file is genuinely compromised — don't make it a habit to strip quarantine from everything.