Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

haralds

macrumors 68040
Original poster
Jan 3, 2014
3,119
1,319
Silicon Valley, CA
I need t to run some apps like Xcode14 from command line. It is rejected by the Gatekeeper and System Settings fails to allow it.

The old line used to be:
Code:
sudo spctl --add --label "Xcode14" /Applications/Xcode14.app
sudo spctl --enable --label "Xcode14".
This is no longer supported. Are there alternatives?

-- Harald
 
Last edited:
Why don't you just disable gatekeeper altogether?
sudo spctl --master-disable

I disable it immediately on all my Macs.
If a software update re-enables it, I just disable it again.

I believe the terminal line to re-enable it is:
sudo spctl --master-enable
(don't know, because as I said, once I've turned it off, I never turn it back on)
 
Why don't you just disable gatekeeper altogether?
sudo spctl --master-disable

I disable it immediately on all my Macs.
If a software update re-enables it, I just disable it again.

I believe the terminal line to re-enable it is:
sudo spctl --master-enable
(don't know, because as I said, once I've turned it off, I never turn it back on)
It is the key protection against malware.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.