Error Codes Wiki

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

  1. 1Right-click (Control+click) the app > Open > click Open in the dialog — this bypasses Gatekeeper once
  2. 2System Settings > Privacy & Security > scroll down to see 'App was blocked' with an Open Anyway button
  3. 3Remove quarantine flag: xattr -d com.apple.quarantine /path/to/app.app
  4. 4For command-line tools: sudo spctl --master-disable enables 'Anywhere' option (use cautiously)
  5. 5Verify app integrity: codesign -dv --verbose=4 /path/to/app.app

Tags

macgatekeepersecurityunidentified-developernotarization

More in Security

Frequently 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.