Quick answer: Gatekeeper shows this when a game downloaded through a browser is unsigned, ad-hoc signed, or signed with a Developer ID but not notarized. Players can try to open it once, then click Open Anyway in System Settings > Privacy & Security, or run xattr -dr com.apple.quarantine on the app. The permanent fix is yours: sign with a Developer ID Application certificate and the hardened runtime, notarize with notarytool, and staple the ticket before you package.

Nothing is wrong with the download and no scanner found anything. The dialog means macOS looked for a notarization ticket from Apple, found none, and refused the first launch. Since macOS 15 the old shortcut of Control-clicking the app and choosing Open no longer gets past it, so a build that players used to shrug through now reads as a malware warning with a Move to Trash button. This guide covers the wording on each macOS version, the steps to give players today, and the signing and notarization pipeline that makes the dialog disappear, with the notary errors game builds usually hit.

The exact error, by macOS version

On macOS 15 Sequoia and later the dialog has a title and one sentence, with Done and Move to Trash as the only buttons:

“MyGame” Not Opened

Apple could not verify “MyGame” is free of malware that may harm your Mac or compromise your privacy.

On macOS 10.15 Catalina through macOS 14 Sonoma the same check produces one of two older wordings, depending on how the build is signed:

“MyGame” cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.

“MyGame” can’t be opened because Apple cannot check it for malicious software.
This software needs to be updated. Contact the developer for more information.

The first is what an unsigned build, or one without a Developer ID signature, typically gets. The second is the wording for a build that carries a Developer ID signature but was never notarized. macOS 10.14 and earlier said “MyGame” can’t be opened because it is from an unidentified developer. All of them are the same Gatekeeper check on the first launch of a quarantined app, and none of them means anything was detected. A file Apple has actually flagged gets a different dialog titled Malware Blocked.

What causes it

Two conditions have to hold together. The app carries the com.apple.quarantine extended attribute, which browsers, mail clients, chat apps and AirDrop attach to what they save and which Archive Utility copies onto everything it unpacks. And Gatekeeper cannot find a notarization ticket for it. In order of how often it happens to games:

  1. The build is unsigned or ad-hoc signed. This is the raw output of a Unity standalone build, of a Godot export with Codesign left on Built-in (ad-hoc only), and of most CI jobs that never had a certificate. An ad-hoc signature is tied to no identity, so there is nothing for Apple to vouch for.
  2. The build is signed with a Developer ID but was never notarized. Since macOS 10.15, a Developer ID signature alone is not enough. This is the usual result of adding codesign to a pipeline and stopping there.
  3. It was notarized but not stapled, and the player’s Mac could not reach Apple. Without a stapled ticket Gatekeeper looks the ticket up online. Offline, or behind a firewall that blocks the lookup, the check fails.
  4. You notarized a different artifact from the one you shipped. Rebuilding, re-signing or patching a file inside the bundle after notarization produces a new code signature that the ticket does not cover.

Players on Steam rarely see any of this, because the Steam client writes the game files itself and nothing is quarantined. itch.io’s documentation says the same about its desktop app: players who install through the app do not run into Gatekeeper’s blocks. A zip from a store page, a Discord attachment or a press build link is where it bites.

How it differs from the “damaged” dialog

Gatekeeper has a harsher sibling: “MyGame” is damaged and can’t be opened. You should move it to the Trash. Both come from the same first-launch check, and the difference matters for support. “Could not verify” means no ticket was found, and the player can override it in System Settings. “Damaged” means the signature itself failed to validate (a bundle modified after signing, a zip that dropped symlinks), and it offers no override at all. Ad-hoc signed Apple silicon builds often land on “damaged” as well, so an unsigned game can show different dialogs on different Macs. That case has its own guide: “is damaged and can’t be opened”.

How to tell which case your build is in

Download the build through a browser the way a player would, unzip it, and ask Gatekeeper directly:

xattr -p com.apple.quarantine MyGame.app
spctl -a -vv -t exec MyGame.app
codesign -dvv MyGame.app

The first command prints a value when the app is quarantined. The second prints the verdict Gatekeeper will reach:

MyGame.app: rejected
source=no usable signature

MyGame.app: rejected
source=Unnotarized Developer ID
origin=Developer ID Application: Your Studio (TEAMID)

MyGame.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Your Studio (TEAMID)

The third shows what kind of signature is present. Signature=adhoc is cause 1. An Authority=Developer ID Application line with flags=0x10000(runtime) and a Timestamp= line means the signature is ready for notarization; a Signed Time= line in place of Timestamp= means the secure timestamp is missing. Running xcrun stapler validate MyGame.app tells you whether a ticket is attached.

What to tell players

Paste this into the store page and support replies until a notarized build is up:

  1. Move the game out of Downloads (into Applications is fine) and double-click it once. When the warning appears, click Done, not Move to Trash.
  2. Open Apple menu > System Settings > Privacy & Security and scroll down to Security. A line about the game being blocked appears there with an Open Anyway button. It stays for about an hour after the failed launch.
  3. Click Open Anyway, confirm in the dialog that follows, and enter your Mac password or use Touch ID. From then on the game opens with a normal double-click.
  4. On macOS 14 and earlier you can also Control-click the game in Finder, choose Open, then click Open in the dialog. On macOS 12 and earlier the settings pane is System Preferences > Security & Privacy > General.
  5. If you are comfortable with Terminal, this one line does the same job on every version:
xattr -dr com.apple.quarantine /path/to/MyGame.app

Step 4 is the part that changed. Apple removed the Control-click override in macOS 15, so guides written before late 2024 send players to a menu item that now shows the same refusal. Apple’s own page for players is Open a Mac app from an unknown developer. The steps work, but every one of them asks a player to overrule a malware warning for a game they have not played yet, and many will not.

Fix 1: sign with a Developer ID and the hardened runtime

You need a paid Apple Developer Program membership, a Developer ID Application certificate in your keychain (not Apple Development and not Mac App Distribution), and a Mac with the Xcode command line tools. Sign nested code first, then the app:

# libraries inside the bundle, deepest first
find MyGame.app/Contents -type f \( -name "*.dylib" -o -name "*.so" \) -exec \
  codesign --force --options runtime --timestamp \
  --sign "Developer ID Application: Your Studio (TEAMID)" {} \;

# then the app, with the entitlements the engine needs
codesign --force --options runtime --timestamp \
  --entitlements MyGame.entitlements \
  --sign "Developer ID Application: Your Studio (TEAMID)" MyGame.app

Frameworks, plug-in bundles and helper apps inside the bundle are signed the same way, as directories, before the outer app. --options runtime turns on the hardened runtime and --timestamp adds the secure timestamp; the notary service rejects a build missing either. codesign --deep can do it in one pass and Unity’s manual uses it, with a warning that it can cause signature problems, because it applies the same entitlements to everything it touches.

The hardened runtime blocks things game engines do, so the entitlements file opts back in. A Unity player needs at least these two, according to Unity’s manual:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.cs.disable-library-validation</key>
    <true/>
    <key>com.apple.security.cs.disable-executable-page-protection</key>
    <true/>
</dict>
</plist>

Games that load the Steam overlay need com.apple.security.cs.disable-library-validation and com.apple.security.cs.allow-dyld-environment-variables, per Steamworks. Save the file as plain XML: a binary plist or a byte order mark gets the submission rejected with Embedded entitlements are invalid.

Fix 2: notarize, staple, then package

# once: store credentials (an app-specific password, not your Apple ID password)
xcrun notarytool store-credentials "notary" \
  --apple-id you@studio.com --team-id TEAMID --password app-specific-password

# upload a zip of the signed app and wait for the verdict
ditto -c -k --keepParent MyGame.app MyGame-upload.zip
xcrun notarytool submit MyGame-upload.zip --keychain-profile "notary" --wait

# attach the ticket to the app, then build the file you distribute
xcrun stapler staple MyGame.app
ditto -c -k --keepParent MyGame.app MyGame-macOS.zip

The order is the point. A zip cannot be stapled, so the ticket goes on the .app and the distribution zip is created afterwards from the stapled app. A .dmg can be signed, notarized and stapled as a container. Apple says most submissions finish within 5 minutes. When the status comes back Invalid, fetch the log, which names each offending file:

xcrun notarytool log <submission-id> --keychain-profile "notary" notary-log.json
Message in the notary logWhat it means in a game buildFix
The signature of the binary is invalid.The file at that path is unsigned, or the bundle changed after signing. Usually a nested dylib, framework or native plug-in.Sign nested code first, the app last, and touch nothing afterwards.
The binary is not signed with a valid Developer ID certificate.Signed ad-hoc, or with an Apple Development or Mac App Distribution certificate. Often a prebuilt third-party library.Re-sign that file with your Developer ID Application identity.
The signature does not include a secure timestamp.codesign ran without --timestamp, or the build machine could not reach timestamp.apple.com.Add the flag and allow that host.
The executable does not have the hardened runtime enabled.An executable was signed without --options runtime. Helper tools and crash handlers are the usual ones missed.Sign every executable with the flag.
The executable requests the com.apple.security.get-task-allow entitlement.A debug entitlement shipped: an Xcode debug build, or Godot’s Debugging entitlement left on.Remove it from the release entitlements.

Apple documents each of these in Resolving common notarization issues.

Where each engine does this

How to confirm the fix

Your build machine cannot show you this dialog, because files you built locally were never quarantined. Upload the final archive to where players get it, download it in a browser on a Mac that has never run the game, and check:

spctl -a -vv -t exec MyGame.app
codesign --verify --deep --strict --verbose=2 MyGame.app
xcrun stapler validate MyGame.app

You want accepted with source=Notarized Developer ID, valid on disk and satisfies its Designated Requirement, and a successful validate. Then double-click it with Wi-Fi off. The only prompt should be the ordinary one saying the app was downloaded from the internet, with an Open button. Test on macOS 15 or later, where the refusal is strictest. If the game also has to run on Intel Macs, check its architectures while you are there: a missing slice produces a different launch failure.

Finding out before the refunds do

Gatekeeper stops the game before any of its code runs, so no SDK can report this failure, Bugnet’s included. What Bugnet can do is make the workaround findable. Each project can have a public bug tracker, and a known-issue entry titled with the exact dialog text, carrying the player steps above, is what a player lands on after pasting the message into a search box. Once players are past the dialog, the in-game report form and automatic error capture take over: every report includes the macOS version and CPU, so you can see whether the Mac players who did get in are healthy on both Apple silicon and Intel. The free plan covers one project and up to 100 bug reports in total.

Frequently asked questions

Why does macOS say Apple could not verify my game is free of malware?

The game was downloaded with a browser, so macOS quarantined it, and Gatekeeper found no notarization ticket for it. That happens when the build is unsigned, ad-hoc signed, or signed with a Developer ID but never notarized. It does not mean malware was detected.

How do players open a game that shows this warning on macOS 15 or later?

Try to open the game once and click Done. Then open System Settings, go to Privacy and Security, scroll to Security and click Open Anyway, which is offered for about an hour. Confirm and enter the Mac password. After that the game opens normally.

Does Control-click and Open still bypass Gatekeeper?

Not on macOS 15 Sequoia or later. Apple removed that override in 2024, and the only graphical route is now the Open Anyway button in Privacy and Security settings. On macOS 14 and earlier, Control-click and Open still works for apps that are not notarized.

Is signing my game with a Developer ID enough, or do I have to notarize too?

You have to notarize. Since macOS 10.15, a quarantined app with a Developer ID signature but no notarization ticket is still blocked on first launch. Sign with the hardened runtime and a secure timestamp, submit with notarytool, then staple the ticket to the app.

Why do Steam players not see this warning?

Gatekeeper only checks files that carry the quarantine attribute, which browsers add to downloads. The Steam client writes game files to disk itself, so they are not quarantined. Steamworks still expects new macOS games to be notarized, and you should not rely on the missing check.

Staple the app, then make the zip from the stapled app. And test by downloading that zip in a browser, because the Mac you built on never quarantines your own files.