Fix "App is damaged and can't be opened" on macOS (Gatekeeper)
"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.
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.
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
- Unsigned or non-notarized app: open source build, release published on GitHub without a Developer ID signature, app built on another Mac.
- 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.
- Incomplete or corrupted download: truncated archive, interrupted extraction.
- 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
-
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.
shasum -a 256 ~/Downloads/MyApp.dmg -
Check the signature with codesign and spctl
codesign --verifychecks that the signature is intact,codesign -dvshows who signed it (Authority,TeamIdentifier), andspctl --assessgives Gatekeeper's verdict. "accepted" followed by "source=Notarized Developer ID" is the expected result for an app distributed outside the App Store.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 -
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".
-
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.
# 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 -
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.
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
- Fix "command not found" and "is not recognized as an internal or external command"
- Fix "running scripts is disabled on this system" in PowerShell
- Fix "xcrun: error: invalid active developer path" on macOS
- Fix "SSL certificate problem: unable to get local issuer certificate" (git, curl, pip, npm)
- Fix "user is not in the sudoers file. This incident will be reported."
- Fix "/bin/bash^M: bad interpreter: No such file or directory"
- Fix "E: Could not get lock /var/lib/dpkg/lock-frontend" (apt, Ubuntu, Debian)