Disable GateKeeper completely on MacOS All Verions

Disable GateKeeper completely on MacOS All Verions


Starting with OS X Mountain Lion, Apple introduced a data execution prevention routine called Gatekeeper. GateKeeper basically is a feature to protect your Mac from installing apps and softwares downloaded from the third parties instead of App store. Therefore, you will face the following very common error:

App can’t be opened because it is from an unidentified developer

How to fix this:

  1. Turn Off the GateKeeper
  2. Go to System Preferences > Security & Privacy > General tab > check on Anywhere option under Allow apps downloaded from

    Be noticed of that you need to make the clock icon at the bottom-left corner to unlock if you want to make any changes from Security & Privacy.

How to Disable Gatekeeper from MacOS Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks, and earlier Mac OS X Verions?

  • Open Terminal app (Found under: /Applications/Utilities/ ), and Enter the following command line:

sudo spctl --master-disable

To check Gatekeeper status:

spctl --status

To enable GateKeeper back, use the following command:

sudo spctl --master-enable