How to Fix “App is damaged and can’t be opened. You should move it to the Trash Error” on MacOS

If you’re a Mac user, you may have encountered the frustrating error message:
“App is damaged and can’t be opened. You should move it to the Trash.”

This typically happens when macOS flags an application as untrusted or damaged due to its security policies. Fortunately, the fix is pretty straightforward.

Why Does This Error Appear?

macOS includes security features like Gatekeeper that prevent potentially harmful software from running. Sometimes, even legitimate apps get mistakenly quarantined when downloaded from the internet or transferred from other devices. This triggers the “damaged” error, blocking the app from opening properly.

How to Fix the Error Using Terminal

One of the most effective solutions is to remove the quarantine attribute attached to the app. Here is the step-by-step method:

  1. Open Terminal

    Go to Applications > Utilities > Terminal to launch Terminal.
  2. Run the Quarantine Removal Command

    Type the following command but don’t press Enter yet:

    sudo xattr -d com.apple.quarantine

    Run the Quarantine Removal Command
  3. Drag and Drop the App into Terminal

    After the space at the end of the command, drag the problematic application’s icon into the Terminal window. This will automatically add the full path of the app.
  4. Execute the Command

    Press Enter. You will be asked to enter your Mac password. This is the admin password you use to log in to your Mac. Note that Terminal won’t show the characters as you type the password—just type it and hit Enter again.
  5. Try Opening the App Again

    After this, try opening your app as usual. The “damaged” error should no longer appear.

Additional Tips

Only perform this if you trust the source of the app.

If this doesn’t work, try restarting your Mac or reinstalling the app.

Disabling Gatekeeper is another option but is not recommended for security reasons unless you know exactly what you are doing.

About CodeROG Software

At CodeROG, we aim to provide simple and clear tech tutorials to help you make the most of your devices. For more helpful tips like this, subscribe to our channel and visit coderog.com.

Tags

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles

Contact us

Partner with Us for Comprehensive IT

We’re happy to answer any questions you may have and help you determine which of our services best fit your needs.

Your benefits:
What happens next?
1

We Schedule a call at your convenience 

2

We do a discovery and consulting meting 

3

We prepare a proposal 

Schedule a Free Consultation