Home > Wiki Tips

Fails to Meet Gatekeeper Policy? (Enable/Disable Gatekeeper)

Updated on Tuesday, December 3, 2024

Written by

Jenny Zeng

Approved by

Jessica Shee

English Deutsch

Summary: This post describes what Gatekeeper on Mac is, Mac Gatekeeper settings, and ways to enable Gatekeeper, turn off Gatekeeper, and bypass Gatekeeper. It also explains why and how to fix if the Mac update fails to meet Gatekeeper.

What's your first acquaintance with macOS Gatekeeper? It could start from the error reading "the package installassistant.pkg fails to meet Gatekeeper policy." after downloading macOS Sonoma, Ventura, Monterey, Big Sur, Catalina, etc.

Maybe you received a warning saying one of the following:

Or you found CoreServicesUIAgent won't close the verifying window when trying to open an app downloaded outside of the App Store.

If you are curious about how to disable Gatekeeper to allow apps downloaded from anywhere on Mac or what to do when a Mac update fails to meet Gatekeeper policy, this post gets you covered.

What is Gatekeeper on Mac?

Gatekeeper is a default Mac security feature that validates the authenticity and integrity of an application's codes and verifies the downloaded software before you can open it to reduce the risks of malware infection. Apps downloaded from the App Store are completely free of malware and thus can always pass Gatekeeper.

Applications unavailable in the App Store, if notarized by Apple, will also satisfy MacBook Gatekeeper. Otherwise, a safe application may get a warning and be blocked from launching. Gatekeeper also works closely with Apple's anti-virus technology XProtect to prevent malware from running on your Mac. Besides, there's MRT to remove malicious software launched on your Mac.

Where is Gatekeeper on my Mac?

Mac Gatekeeper isn't an app or file that you can search with Spotlight. Its feature is integrated into the General tab of the Security & Privacy pane in System Preferences or System Settings, where you are given two options that allow apps to be downloaded from:

App Store

If this is selected, only apps downloaded from the App Store can be launched.

App Store and identified developers

This has been the default setting since macOS Mountain Lion. It enables you to open apps downloaded from the App Store and certified Apple developers.

Anywhere

This option has been hidden by default since macOS Sierra. When it's present, the Gatekeeper will be turned off, and you can launch all applications.

How to enable Gatekeeper on Mac?

Gatekeeper is enabled by default on Mac. But if you disabled Gatekeeper on Mac to install applications, it's advisable to re-enable it once the app is in place. You can either go to System Preferences or enable Gatekeeper with Mac Terminal.

How to enable Gatekeeper in System Preferences:

On macOS Monterey or earlier:

  1. Open the Apple menu > System Preferences.
  2. Click on Security & Privacy.
  3. Tap on the lock and enter your account password.
  4. Select "App Store and identified developers" under "Allow apps downloaded from:". 

On macOS Ventura or later:

  1. Open the Apple menu > System Settings.
  2. Select Privacy & Security.
  3. Select "App Store and identified developers" under "Allow apps downloaded from:". 

How to enable Gatekeeper on Mac Terminal:

  1. Open Finder > Applications > Utilities > Terminal.
  2. Enter the following command:sudo spctl --master-enable
  3. Hit Enter and input your password if asked.
  4. Press Enter.

If you are still unsure whether Gatekeeper is enabled, you can check Gatekeeper status on Mac using Terminal.

How to check Gatekeeper status on Mac:

  1. Launch Terminal from the Applications > Utilities folder.
  2. Enter the following command and hit Enter.spctl --status

How to temporarily bypass Gatekeeper?

If your Mac is popping up the error "Cannot be opened because it is from an unidentified developer.", you can temporarily bypass Gatekeeper without it being disabled.

  1. Right-click on the app icon.
  2. Choose Open.
  3. Click Open again. You will still receive the message, but it won't stop you from launching the app now.

How to disable Gatekeeper on Mac?

You can also turn off Gatekeeper on Mac to open apps from an unidentified developer, though you're more recommended to bypass Gatekeeper instead. Since the Allow downloads from "Anywhere" option in the Security & Privacy pane is missing by default, you can only disable Gatekeeper on Mac with Mac Terminal.

How to disable Gatekeeper on M1 Mac and Intel Mac (including macOS Sonoma/Ventura/Monterey/Big Sur/Catalina/Mojave/High Sierra...)

  1. Open Terminal from Finder > Applications > Utilities.
  2. Input this command and hit Enter.sudo spctl --master-disable
  3. Enter your password and press Enter again.

 Tips: If the command doesn't work, try: sudo spctl --global-disable

Now you have disabled Gatekeeper on Mac, and you will find the option "Anywhere" enabled if you go back to the Security & Privacy pane.

Mac update failed to meet Gatekeeper

Many users encountered a Gatekeeper error when trying to install Monterey saying that "the package installassistant.pkg fails to meet Gatekeeper policy." In this case, the users likely updated from the Software Update pane in System Preferences, but their Macs only acknowledge the package downloaded from the App Store. Thus, downloading macOS Monterey or another release from the App Store solves the problem.

If Gatekeeper won't let you install the macOS Sonoma beta installer, try disabling Gatekeeper with the method mentioned above. Then reenable it after the installation is complete.