App Is Damaged and Can't Be Opened on Mac: Fix
In this article
If you see ““App” is damaged and can’t be opened” on your Mac, it usually means Gatekeeper is blocking the app because its signature or quarantine attribute is missing or invalid. The quickest fix is to remove the quarantine attribute with a Terminal command, or re-download the app from a trusted source. Below are the exact steps to resolve this safely.
What You'll Need
- Your Mac’s administrator password (for Terminal commands if needed).
- Internet connection to re-download the app if the file is corrupted.
- The exact name of the app (as shown in your Applications folder or Downloads).
Step-by-Step
- Check the app’s source. If you downloaded the app from anywhere other than the official App Store or the developer’s website, it may be flagged. Only proceed with apps you trust.
- Try opening it again. Sometimes a simple retry works after a system update. Right-click (or Control-click) the app in Finder and select Open. If you see a warning, click Open again in the dialog. This can bypass the first-time gatekeeper check.
- Remove the quarantine attribute (most common fix).
- Open Terminal (found in Applications > Utilities).
- Type
sudo xattr -rd com.apple.quarantinefollowed by a space. - Drag the app file from Finder into the Terminal window – this fills in the path automatically.
- Press Enter, enter your admin password when prompted (you won’t see characters as you type), and press Enter again.
- Try opening the app again.
- If the app is still blocked, check your security settings. Go to System Settings > Privacy & Security (or System Preferences > Security & Privacy on older macOS). Scroll down to the Security section. If you see a message about the app being blocked, click Open Anyway.
- Re-download the app. Delete the app by dragging it to the Trash, then download it again from the official source. Make sure you get the version compatible with your macOS version.
- If the app is from the App Store, open the App Store, go to your account > Purchased, and click the download icon next to the app. This ensures you get the latest signed version.
Common Mistakes
- Using the wrong command syntax: Missing the
-rdflags or the space before the path can cause errors. Copy the command exactly. - Dragging the app while it’s running: Quit the app completely before attempting to remove the quarantine attribute.
- Downloading from unofficial mirrors: These often strip signatures, causing the error. Always use the developer’s site or the App Store.
- Skipping the password prompt: The
sudocommand requires your admin password. If you don’t have admin rights, you’ll need an admin user to do this.
Tips
- If you frequently download apps outside the App Store, you can temporarily lower Gatekeeper security (System Settings > Privacy & Security > Allow apps from anywhere), but this is not recommended for everyday use.
- Always verify the app’s checksum (if the developer provides one) to ensure the file isn’t corrupted during download.
- Keep macOS updated – newer versions often fix Gatekeeper false positives.
- If the app is from a known developer, check their support page for specific instructions – some apps require additional steps.
Troubleshooting
If the above steps didn’t work, try these in order:
- Restart your Mac. This clears temporary system caches that might interfere with Gatekeeper.
- Check if the app is 32-bit. macOS Catalina and later do not support 32-bit apps. If the app is old, it will never open – look for a 64-bit version or an alternative.
- Verify the app’s integrity. In Terminal, run
codesign --verify --deep --strict /path/to/app(replace with the actual path). If you get errors, the app is genuinely damaged – re-download it. - Reset the app’s permissions. Go to System Settings > Privacy & Security, and if the app appears in any list (like Accessibility), toggle it off and on.
- If the app is from an unidentified developer, you may need to right-click it and select Open to see the override option. If that doesn’t appear, try the Terminal method again and make sure you’re using the full path.
- As a last resort, create a new user account and try opening the app there. If it works, the issue is with your user settings, not the app.
Frequently Asked Questions
Why does this happen even with apps from the App Store?
App Store apps are usually signed and not quarantined, but if the download was interrupted or the app was moved from another Mac, the signature can become invalid. Re-downloading from the App Store usually fixes it.
Is it safe to remove the quarantine attribute?
It is safe only if you trust the app and its source. Removing quarantine bypasses Gatekeeper’s check, so only do this for apps you are certain are legitimate.
What does “damaged” actually mean?
It means the app’s code signature doesn’t match what Apple expects, or the file is corrupted. It doesn’t necessarily mean the app is malicious – often it’s a false positive from a downloaded file.
Can I fix this without Terminal?
Yes, try right-clicking and selecting Open, or check System Settings > Privacy & Security for an Open Anyway button. If those don’t work, Terminal is the most reliable method.
Will this work on macOS Sonoma or Sequoia?
Yes, the method works on all recent macOS versions. The System Settings path may differ slightly, but the Terminal command is the same.
What if I don’t have admin rights?
You’ll need to ask an administrator to run the Terminal command or change the security settings for you. Without admin rights, you cannot bypass Gatekeeper.