Mac Gatekeeper — App Cannot Be Opened (Unidentified Developer)
Warningsecurity
Overview
macOS Gatekeeper blocks apps from unidentified developers or unnotarized apps with the message 'can't be opened because Apple cannot check it for malicious software'.
Key Details
- Gatekeeper is macOS's security feature verifying app signatures and notarization
- Apps must be either from the App Store or signed with a valid Developer ID
- Since macOS Catalina, apps also need Apple notarization (automated malware check)
- The quarantine flag (com.apple.quarantine) marks downloaded files for Gatekeeper checking
- Three Gatekeeper levels: App Store only, App Store + identified developers, or anywhere (hidden)
Common Causes
- App downloaded from the internet is not notarized by Apple
- Developer's code signing certificate expired or was revoked
- App is from an unidentified developer (no Developer ID)
- Downloaded file has the quarantine extended attribute set
- Open-source or indie apps often are not notarized due to cost
Steps
- 1Right-click (Control+click) the app > Open > click Open in the dialog — this bypasses Gatekeeper once
- 2System Settings > Privacy & Security > scroll down to see 'App was blocked' with an Open Anyway button
- 3Remove quarantine flag: xattr -d com.apple.quarantine /path/to/app.app
- 4For command-line tools: sudo spctl --master-disable enables 'Anywhere' option (use cautiously)
- 5Verify app integrity: codesign -dv --verbose=4 /path/to/app.app
Tags
macgatekeepersecurityunidentified-developernotarization
More in Security
windows-defender-errorsWindows Defender Errors — Antivirus Not Working or Updating
Errorwindows-error-0x80073b01-defender-serviceWindows Error 0x80073B01 — Windows Defender Service Failed to Start
Errormac-filevault-recovery-errorsMac FileVault Errors — Encryption, Decryption & Recovery Key Issues
Errorlinux-ssl-tls-certificate-errorsLinux SSL/TLS Certificate Errors — Expired, Self-Signed & Chain Issues
Warningbrowser-mixed-content-warningsBrowser Mixed Content Warnings — HTTP Resources on HTTPS Page
Warningbrowser-csp-violationsBrowser CSP Violations — Content Security Policy Error Guide
WarningFrequently Asked Questions
Only if you trust the source. Notarization means Apple scanned it for malware, but absence of notarization does not mean the app is malicious.