# 如何在 macOS 上打开被阻止的应用：门禁与隔离标记

_As of 2026-11-27_

先尝试打开一次应用，然后前往“系统设置 → 隐私与安全性”，点按“仍要打开”。这样只为这一个应用开了例外，门禁（Gatekeeper）对其他一切仍然有效。

Gatekeeper verifies that apps are signed and notarized by Apple. Apps installed outside the App Store, self-built tools and some open-source projects are not notarized, so the first launch is blocked. Here is how to handle it cleanly.
Fix 1: Open Anyway in Privacy &amp; Security (macOS 15 and later)

Double-click the app once and close the warning.
Open System Settings → Privacy &amp; Security and scroll down to the Security section.
Click Open Anyway next to the app's name and confirm with your password or Touch ID.
macOS remembers the exception; future launches are normal.

Fix 2: Control-click and Open (macOS 14 and earlier)

In Applications, hold Control and click the app icon.
Choose Open, then Open again in the dialog.

Fix 3: Remove the quarantine flag
When an app you trust still refuses to start, clear the download flag in Terminal:
xattr -d com.apple.quarantine "/Applications/Your App.app"
For a bundle with nested binaries, use the recursive form xattr -rd com.apple.quarantine "/Applications/Your App.app".
What not to do
Avoid turning Gatekeeper off for the whole system with spctl. It makes every future download run unchecked and is almost never necessary. Prefer the per-app steps above, and only remove quarantine from software you actually trust.
Verify
Relaunch the app with a normal double-click. If it opens without warnings, the exception is in place and you are done.

> Source: https://macsoftpark.net/zh/guides/disable-gatekeeper-remove-quarantine/
