Disabling Gatekeeper in macOS Catalina (10.15.1)
Emily Wong
I am trying to run some command line tools, and every time it calls a new dependency I get the popup "X cannot be opened because the developer cannot be verified." Obviously, if I open system preferences, I can click on "open anyway", but this is an incredibly onerous process for the tools I'm using.
I found the following supposed workaround:
sudo spctl --master-disableThis enables a radio button labelled "Anywhere" under "Allow apps downloaded from", but it doesn't seem to actually have any effect on the screening of the command line tools. I still get the popups, and in fact, if I close system preferences and reopen it, the "Anywhere" radio button has disappeared.
Any recommendations would be greatly appreciated.
81 Answer
I had the same problem on Catalina 10.15.7. sudo spctl --master-disable did not remove the popups, even though the status says assessments disabled.
What did work was additionally running csrutil disable in recovery mode. ()
This will completely disable SIP, so use your own judgement.