Downloaded an app on your Mac and hit "cannot be opened because the developer cannot be verified"? Here is what macOS is telling you, and how to open the app without switching off protection for everything else.
The Error
"AppName" cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.
The dialog offers Move to Trash and Cancel. There is no "Open anyway" button in the dialog itself, which is what sends most people looking for a fix.
Why This Happens
macOS runs Gatekeeper, which checks software before first launch. Two things are being assessed:
- Code signature - was the app signed with a certificate issued to a registered Apple developer, and is it unmodified since?
- Notarization - was the app submitted to Apple's automated malware scan and issued a ticket?
This particular message means notarization could not be confirmed. Common reasons, in rough order of likelihood:
- The developer is small, or the project is open source, and never enrolled in notarization
- The app is signed ad-hoc or self-signed
- The download was built from source or repackaged by a third party
- The app is genuinely malicious
That last possibility is why the warning exists, and it is the reason the honest first step is not a command but a question: do I know where this came from? An open-source utility from its own GitHub releases page is a different proposition to an installer that arrived by email.
Gatekeeper triggers on the com.apple.quarantine extended attribute, which macOS attaches to files delivered by browsers, mail clients, and messaging apps. Files you compiled locally or copied from a USB drive typically carry no such attribute and open without any prompt.
Fix 1: Approve the App in System Settings
This is the supported route and the narrowest one - it creates an exception for a single application.
- Double-click the app and let the warning appear. Click Cancel (not Move to Trash).
- Open System Settings > Privacy & Security.
- Scroll down to the Security section. You will see a line such as "AppName" was blocked to protect your Mac.
- Click Open Anyway.
- Authenticate with Touch ID or your password.
- Open the app again and confirm at the final prompt.
The message only appears for roughly an hour after the blocked launch attempt. If it is not there, open the app again and go straight back to Settings.
On macOS Sonoma and earlier you can also Control-click (or right-click) the app, choose Open, and then Open in the dialog. Apple removed this bypass in macOS Sequoia (15), so on current systems the Settings route above is the one that works.
Fix 2: Verify Before You Approve
If you are not certain of the source, inspect the app before opening it. This takes under a minute.
Check what signature it carries:
codesign -dv --verbose=4 /Applications/AppName.app
Read the Authority= lines. A legitimately signed app names a real certificate, for example Authority=Developer ID Application: Example Ltd (AB12CD34EF). Signature=adhoc or an error means it carries no meaningful identity at all.
Ask Gatekeeper directly why it objected:
spctl -a -vvv /Applications/AppName.app
Typical output for this situation:
/Applications/AppName.app: rejected
source=Unnotarized Developer ID
Unnotarized Developer ID means a known developer signed it but never submitted it for notarization - the mildest version of this problem. rejected (the code is invalid) is a different matter and worth taking seriously.
See where the file came from:
xattr -l /Applications/AppName.app
The com.apple.quarantine value records the app that downloaded it and the source URL.
Fix 3: Remove the Quarantine Attribute (One App)
If you have verified the source and the Settings route is unavailable - for example when scripting a deployment - you can clear the attribute for that single app:
xattr -d com.apple.quarantine /Applications/AppName.app
For a bundle that still complains, clear it recursively:
xattr -dr com.apple.quarantine /Applications/AppName.app
The tradeoff: this does not answer the question Gatekeeper asked, it just stops it being asked. You are substituting your own judgement about the source for Apple's automated scan. That is a legitimate choice for software you trust and a poor one for software you have not checked. Scope it to one path - never run it against /Applications as a whole.
What Not to Do
# Don't do this
sudo spctl --master-disable
This disables Gatekeeper assessment machine-wide and permanently, for every app you have downloaded and every app you download in future, restoring the "Anywhere" option that Apple removed by default years ago. It converts a single-app decision into a standing exposure for the whole system, including for other people who use the Mac.
Apple has tightened this across recent releases and it may have no effect on a current system. If you have run it previously, re-enable protection:
sudo spctl --master-enable
spctl --status
assessments enabled is the state you want.
Verify the Fix
After approving the app:
# Gatekeeper's current assessment
spctl -a -vvv /Applications/AppName.app
# System-wide protection still on
spctl --status
spctl --status should report assessments enabled. That is the important line - it confirms you solved the problem for one app rather than for all of them. The app itself should now launch normally on every subsequent open, with no further prompts.
Prevention
- Download from the developer's own site or the Mac App Store. Aggregator sites frequently re-wrap installers, which breaks signatures and is a genuine malware vector.
- Where a project publishes checksums, verify them:
shasum -a 256 ~/Downloads/AppName.dmgand compare against the published value. - For internally built or line-of-business Mac apps, notarize them properly rather than teaching staff to click past warnings. A workforce trained to dismiss this dialog will dismiss the one that matters.
- On managed fleets, distribute approved apps through MDM so they install without triggering the prompt at all, rather than lowering Gatekeeper.
- Keep
spctl --statusreportingassessments enabledand treat any machine where it does not as needing attention.
Summary
- Approve one app: System Settings > Privacy & Security > Open Anyway
- macOS Sonoma and earlier: Control-click the app > Open (removed in Sequoia)
- Check first:
codesign -dv --verbose=4andspctl -a -vvv - Scripted case only:
xattr -d com.apple.quarantine /Applications/AppName.app - Never:
sudo spctl --master-disable