macOS: Fix "App Is Damaged and Can't Be Opened"
When opening Chatbox on macOS, you may see the error: "Chatbox is damaged and can't be opened. You should move it to the Trash."
In most cases, the app is not actually damaged. This is caused by macOS Gatekeeper blocking apps downloaded from the internet that haven't been notarized by Apple.
Solution 1: Allow in System Settings (Recommended)
This is the simplest and safest method.
- Try opening Chatbox normally — the error will appear. Click Cancel
- Open System Settings > Privacy & Security
- Scroll down to the Security section. You'll see a message like: "Chatbox" was blocked from use because it is not from an identified developer.
- Click Open Anyway and enter your Mac password
Solution 2: Remove Quarantine via Terminal
If Solution 1 doesn't show the "Open Anyway" option, use Terminal to remove the quarantine flag first, which will make the "Open Anyway" button appear.
- Open Terminal (found in
/Applications/Utilities/) - Run the following command:
sudo xattr -cr /Applications/Chatbox.app
Tip: You can type
sudo xattr -cr(with a trailing space), then drag the Chatbox app icon from Finder into the Terminal window to auto-fill the path.
- Try opening Chatbox again — it may still show the "damaged" error, this is normal
- Now go to System Settings > Privacy & Security, the "Open Anyway" button should appear
- Click Open Anyway and enter your Mac password — Chatbox will open successfully
If you get "Operation not permitted"
This means Terminal doesn't have sufficient permissions. You need to grant Full Disk Access:
- Open System Settings > Privacy & Security > Full Disk Access
- Click the lock icon to unlock, enter your password
- Click "+", navigate to Applications > Utilities, select Terminal.app, and click Open
- Make sure the toggle next to Terminal is on
- Quit and restart Terminal completely
- Run the command again:
sudo xattr -cr /Applications/Chatbox.app
- Then follow steps 3–5 above to open via System Settings > Open Anyway
Solution 3: Temporarily Disable Gatekeeper
If the above methods don't work, you can temporarily disable Gatekeeper entirely.
- Run in Terminal:
sudo spctl --master-disable
- Open Chatbox
- Immediately re-enable Gatekeeper after the app opens:
sudo spctl --master-enable
Solution 4: Ad-hoc Code Signing
As a last resort, you can re-sign the app locally:
sudo codesign --force --deep --sign - /Applications/Chatbox.app
Summary
| Step | Method | When to Use |
|---|---|---|
| 1 | System Settings > Open Anyway | First choice, safest |
| 2 | sudo xattr -cr + Open Anyway | When "Open Anyway" isn't available initially |
| 3 | Disable Gatekeeper | When Terminal commands fail |
| 4 | Ad-hoc code signing | Last resort |
Why Does This Happen?
macOS adds a com.apple.quarantine attribute to files downloaded from the internet. When you open an app with this flag, Gatekeeper checks if it has been code-signed and notarized by Apple. If not, macOS blocks the app and shows the misleading "damaged" error message.