Skip to content
FR
  1. LuzineDebug
  2. Systems (Windows, macOS, Linux)
  3. "App" is damaged and can't be opened. You should…
Systems (Windows, macOS, Linux) Intermediate ≈ 10 min to fix

Fix "App is damaged and can't be opened" on macOS (Gatekeeper)

Error message
"App" is damaged and can't be opened. You should move it to the Trash.
  • “MyApp.app” is damaged and can’t be opened. You should move it to the Trash.
  • “MyApp” is damaged and can’t be opened. You should eject the disk image.
  • “MyApp” can’t be opened because Apple cannot check it for malicious software.
  • “MyApp” cannot be opened because the developer cannot be verified.
  • Apple could not verify “MyApp” is free of malware that may harm your Mac or compromise your privacy.
In short

Gatekeeper is blocking a downloaded app whose signature is missing, invalid or modified. Download it again from the official website or the Mac App Store and check its signature with codesign and spctl. Only remove the quarantine attribute with xattr if you are sure the app comes from a trusted source.

Be the first to confirm this fix

What this error means

When a browser, AirDrop or a messaging app saves an app, macOS adds the com.apple.quarantine extended attribute to it. On first launch, Gatekeeper then checks the code signature and Apple notarization. If the signature is broken (files modified after signing), missing on an Apple silicon Mac, or the download is incomplete, macOS shows "is damaged" without offering to open it. The message is misleading: the app is rarely corrupted, but macOS cannot prove it is intact, which is exactly what a pirated or trojanized app would also produce.

Common causes

  1. Unsigned or non-notarized app: open source build, release published on GitHub without a Developer ID signature, app built on another Mac.
  2. Broken signature: a file inside the app was changed after signing (patch, added plugin, edited resource), or the copy went through a tool or drive that altered the bundle.
  3. Incomplete or corrupted download: truncated archive, interrupted extraction.
  4. Genuinely tampered app: "cracked" version or one downloaded from an unofficial site. In that case, Gatekeeper is doing exactly its job.

Step-by-step fix

  1. Download again from the official source

    Delete the blocked copy and download the app from the vendor's website, its official releases page or the Mac App Store. If the vendor publishes a SHA-256 checksum, compare it.

    bash
    shasum -a 256 ~/Downloads/MyApp.dmg
  2. Check the signature with codesign and spctl

    codesign --verify checks that the signature is intact, codesign -dv shows who signed it (Authority, TeamIdentifier), and spctl --assess gives Gatekeeper's verdict. "accepted" followed by "source=Notarized Developer ID" is the expected result for an app distributed outside the App Store.

    bash
    codesign --verify --deep --strict --verbose=2 /Applications/MyApp.app
    codesign -dv --verbose=4 /Applications/MyApp.app
    spctl --assess --type execute --verbose=4 /Applications/MyApp.app
  3. For an unverified app: use the settings

    For the "developer cannot be verified" or "Not Opened" messages, launch the app once, then open System Settings > Privacy & Security, scroll down to Security and click "Open Anyway". Since macOS 15 Sequoia, Control-click > Open no longer bypasses this block. This button does not appear for "is damaged".

  4. Remove quarantine, only for a trusted source

    If the app comes from a source you are certain of (your own build, verified open source project, known vendor) but is not notarized, you can remove the quarantine attribute for this app only. Risk: Gatekeeper will no longer check it, and if it is malicious, it will run with all your rights. Never do it for a cracked app or one of dubious origin, and do not disable Gatekeeper globally.

    bash
    # Inspect the attribute first
    xattr -p com.apple.quarantine /Applications/MyApp.app
    
    # Remove only the quarantine attribute, only for this trusted app
    xattr -dr com.apple.quarantine /Applications/MyApp.app
  5. If it is your app: sign and notarize

    To distribute an app you develop, sign it with a Developer ID certificate, submit it to Apple notarization, then staple the ticket. Your users will no longer see any warning.

    bash
    codesign --force --options runtime --timestamp --sign "Developer ID Application: Your Name (TEAMID)" MyApp.app
    ditto -c -k --keepParent MyApp.app MyApp.zip
    xcrun notarytool submit MyApp.zip --keychain-profile "notary" --wait
    xcrun stapler staple MyApp.app

Did this fix work for you?

Confirm it in one click: it will rise for the next developers stuck on the same error.

Keep it from coming back

  • Download apps only from the Mac App Store, the vendor's official website or its official releases page.
  • Keep Gatekeeper on: removing quarantine case by case, for a trusted app, is far less risky than disabling it system-wide.
  • If you distribute a Mac app, add Developer ID signing and notarization to your CI.

Frequently asked questions

Is xattr -cr safe?

-c clears every extended attribute, not just quarantine. Prefer xattr -dr com.apple.quarantine, and only for an app whose origin you know: in both cases, you turn off Gatekeeper's check for that app.

Is the app really damaged?

Rarely: it is most often a missing or broken signature. Check with codesign --verify and compare the SHA-256 checksum with the vendor's to be sure.

Why does the same app open on another Mac?

The other copy may not have the quarantine attribute (copied other than by download), or it is an Intel Mac, which is less strict about unsigned apps than Apple silicon Macs.

Useful tools for this error

More Systems (Windows, macOS, Linux) errors

All Systems (Windows, macOS, Linux) errors →