In previous versions of the OS in the security pane, you are provided an option of:

But in this version there is no option anywhere:

Is there a way that I can turn on anywhere? (via Terminal maybe?)

  • Comments are not for extended discussion; this conversation has been moved to chat. – bmike Aug 19 '16 at 10:30
up vote 71 down vote accepted

Apple have removed this function on macOS Sierra, but you can re-enable it running this in terminal:

sudo spctl --master-disable 

Additionally, as Jack points out:

Granted this is a little overkill, but it does the job reliably. It can be re-enabled immediately after launching the application with

sudo spctl --master-enable

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • 2
    Granted this is a little overkill, but it does the job reliably. It can be re-enabled immediately after launching the application with sudo spctl --master-enable – Jack Jul 15 '16 at 12:16
  • 3
    Works like a charm. Even brought back the "Anywhere" radio button in the Preference Pane. – scottperezfox Sep 21 '16 at 19:26
  • Thanks for pointing this neat utility out to me. Oddly enough, playing with it says that all applications are "rejected", even e.g. /Applications/Calendar.app. I wonder if it's not yet fully functional in Yosemite. Seems to work fine on El Capitan. – Edward Falk Sep 24 '16 at 18:39
  • This should be the accepted answer – Zorgatone Feb 2 '17 at 13:44
  • @Zorgatone Done! – samayres1992 Oct 17 '17 at 11:25

OS X improves download validation by providing file quarantine in applications that download files from the Internet. This means that downloads are checked for safety (known malware) when you try to open them.

You can check an app (or any file) in quarantine using terminal. It's literally an extended file system attribute:

mac:~ user$ xattr /Applications/Some.app
com.apple.quarantine
mac:~ user$

If you're absolutely sure it's safe to run the app, you can drop the attribute like follows (you'll be asked to provide your password):

mac:~ user$ sudo xattr -r -d com.apple.quarantine /Applications/Some.app

Check once again:

mac:~ user$ xattr /Applications/Some.app
mac:~ user$

Now you should be able to run the app.

You can open those files with Seconday Click (Right Click or ⌃CTRL+Click) in Finder and choosing open.

Right now (10.12 Beta (16A294a)) - there is no check box to add an Anywhere option back in the preferences.

  • 8
    this does not work where the bundle is signed but the signature fails validation – Jack Jul 15 '16 at 12:13

Gatekeeper options are redesigned by Apple for Sierra.

What it comes down to is that Apple is removing the "Install from Anywhere" option for the "general user" or the masses of people that are not power users.

However as already answered by user Mateusz Szlosek, you can still open unsigned apps via Finder by right clicking (Ctrl clicking) on the Application and selecting Open.

  • 1
    Did NOT work on 10.12.1 for an installer... still had to approve it in the security control panel. – aramis Nov 21 '16 at 8:23

If the app was extracted from an archive, it might be your archive extraction utility.

After checking out the other answers found here, none of them were working for me.

Eventually I realized the issue was my archive extraction utility (Keka 1.0.6) was silently failing to extract the app from its .zip file, and even though the app looked intact with the correct icon and everything, it was failing to read the package contents and would throw up a generic error message:

The application “AppNameHere.app” can’t be opened.

I swapped back over to using the built-in "Archive Utility.app" and everything went smoothly after that. So if sudo spctl --master-disable doesn't work and xattr shows the file isn't quarantined, try a different extractor utility.

protected by Community Oct 6 '16 at 20:11

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.