Starting from macOS 15, sudo spctl --master-disable
is no longer supported to disable Gatekeeper.
We need to disbale it with Configuration Profiles.
- Create a new configuration profile, an XML file with
.mobileconfig
extension, refer the sample file in this gist - replace the UUID with your own, you can use
uuidgen
in terminal to generate a new one - 2 UUIDs are required, one for the profile and one for the payload
- double click the
.mobileconfig
file to install the profile on your Mac - in system pereferences -> device management, click to open the profile and enable it
- restart the Mac
You can see in Sysytem Settigns -> Security & Privacy, allow applications from Anywhere
is set.
Do I need to paste this directly into terminal exactly as is? I do not know coding but am trying to get my plugin to work that worked on my m1 mac with my new m4