Skip to main content
coreydaley.dev

"App is damaged and can't be opened" on a Mac: what it means and what to do

You download an app, unzip it, double-click it, and macOS says one of these:

“Example” is damaged and can’t be opened. You should move it to the Trash.

Apple could not verify “Example” is free of malware that may harm your Mac or compromise your privacy.

They look alike, but they mean different things, and only one of them has a safe way through.

What the two messages mean

“Damaged and can’t be opened” means the app’s code signature doesn’t match its files. Every signed app carries a seal over everything inside it; if one file changed, went missing, or was put back differently, the seal breaks and macOS refuses to run it. That can be a download that didn’t finish, a tool that unpacked the app wrongly, or someone tampering with it. macOS can’t tell which, so it treats them all the same, and so should you: don’t try to force it open.

“Apple could not verify… is free of malware” means the app is intact but wasn’t notarized: the developer didn’t send it to Apple for an automated malware check. Plenty of honest open-source and small-developer apps aren’t notarized. This one you can open, if you trust where it came from (see below).

Disk images and installers have their own versions: “you should eject the disk image” for a .dmg, and “package is damaged” for a .pkg. They mean the same thing as the app message.

First: get a clean copy

Most “damaged” apps aren’t damaged at the source. The copy on your Mac is.

  1. Download it again, from the developer’s own website or the Mac App Store, not a mirror or a link in a forum post.
  2. Unzip it with Finder. Double-click the ZIP and let Archive Utility expand it. Archive Utility knows how to unpack an app so its seal survives. Some third-party unarchivers don’t; see If you unzipped it with Purrchiver.
  3. Move the app to Applications and open it from there.

If a fresh copy unzipped with Finder still says “damaged”, stop. Contact the developer, and don’t run that copy.

If it says “could not verify” and you trust the source

Since macOS Sequoia, right-clicking the app and choosing Open no longer gets past this warning. Apple’s way through is in System Settings (Apple’s guide):

  1. Try to open the app once, so macOS records it.
  2. Open System Settings ▸ Privacy & Security, scroll down, and click Open Anyway next to the app’s name.
  3. When the warning appears again, click Open. You may be asked for your password.

macOS remembers the exception for that app, so you only do this once. It only works for the “could not verify” message. For “damaged”, there’s no Open Anyway, and that’s on purpose.

Only do this for an app you got straight from a developer you trust. “I downloaded it from a site that looked official” isn’t the same thing.

Check an app’s signature yourself

Two Terminal commands tell you what macOS thinks of an app. Both only read; they don’t change anything:

codesign --verify --deep --strict --verbose=2 /Applications/Example.app
spctl --assess --verbose=2 /Applications/Example.app

For a healthy app, codesign says valid on disk and satisfies its Designated Requirement, and spctl says accepted, with the source: Mac App Store, Notarized Developer ID, or Apple System.

If codesign reports a file that was modified, added or is missing, the seal is broken. Get a fresh copy. If codesign is happy but spctl says rejected, the app is intact but not notarized: the “could not verify” case.

What not to do

You’ll find advice online to switch Gatekeeper off with sudo spctl --master-disable, or to strip attributes from the app with xattr so the warning goes away. Don’t. Both work by turning off the check rather than answering the question it asked, and the first one does it for every app on your Mac, not just this one. If a fresh, Finder-unzipped copy from the developer still won’t open, the answer is the developer, not a workaround.

If you unzipped it with Purrchiver

This one’s on me. Purrchiver up to and including version 1.0.1 can cause the “damaged” message. When it extracted an app, it wrote the links inside the app’s bundle (for example Foo -> Versions/Current/Foo in an embedded framework) as full paths instead of the short relative ones the developer signed, and it skipped some links that climb with ... Either is enough to break the seal of most apps that include a framework.

That’s fixed in Purrchiver 1.1, which is on the Mac App Store now. Update Purrchiver, then delete the broken copy of the app and unzip it again; a copy extracted by 1.0.1 or earlier stays broken. Everything else Purrchiver extracts is unaffected: documents, photos and folders don’t carry a seal.

The fix keeps every link exactly as stored, still refuses any link that would point outside the folder you’re extracting to, and is checked by a test that signs an app with both kinds of link, zips it the way Finder does, extracts it, and runs the same codesign --verify --deep --strict shown above.