Written byJenny Zeng
Fails to Meet Gatekeeper Policy? Your Guide to macOS Gatekeeper
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 failed 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 installing macOS Monterey, Big Sur, Catalina, etc.
Maybe you received a warning saying "macOS cannot verify that this app is free from malware.", or "Cannot be opened because Apple cannot check it for malicious software.", 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 Monterey or what to do when a Mac update failed to meet Gatekeeper policy, this post gets you covered.
Guide to Gatekeeper on Mac:
- 1. What is Gatekeeper on Mac?
- 2. Where is Gatekeeper on my Mac?
- 3. How to enable Gatekeeper on Mac?
- 4. How to disable Gatekeeper on Mac?
- 5. How to temporarily bypass Gatekeeper?
- 6. Mac update failed to meet Gatekeeper
- 7. FAQ about Gatekeeper on Mac
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, where you are given two options that allow apps to be downloaded from:
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.
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:
- Open the Apple menu > System Preferences.
- Click on Security & Privacy.
- Tap on the lock and enter your account password.
- Select "App Store and identified developers" under "Allow apps downloaded from:".
How to enable Gatekeeper on Mac Terminal:
- Open Finder > Applications > Utilities > Terminal.
- Enter the following command:sudo spctl --master-enable
- Hit Enter and input your password if asked.
- 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:
- Launch Terminal from the Applications > Utilities folder.
- 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.
- Right-click on the app icon.
- Choose Open.
- 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 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 Monterey/Big Sur/Catalina/Mojave/High Sierra...)
- Open Terminal from Finder > Applications > Utilities.
- Input this command and hit Enter.sudo spctl --master-disable
- Enter your password and press Enter again.
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 from the App Store solves the problem.
FAQ about Gatekeeper on Mac
There are two ways to know whether Mac Gatekeeper is enabled:
1. Go to Security & Privacy in System Preferences, if it's set to download apps from the App Store and App Store and identified developers, the Apple Gatekeeper is enabled.
2. Open Mac Terminal, execute the command: spctl --status, then Terminal will show you if Gatekeeper is enabled.
Gatekeeper is safe and a security feature in macOS aiming to reduce the possibility of a user installing malware.
It's safe to temporarily disable Gatekeeper on Mac. It's best to re-enable Gatekeeper after installing the app that Gatekeeper blocked to avoid malware in the future.
Gatekeeper keeps your Mac away from harmful software by examining the applications you downloaded from the web.