Introduction
By default, macOS restricts app launches to those from the App Store or signed by known developers. This feature, called Gatekeeper, protects against malware but can sometimes interfere with installing trusted apps from other sources. In this guide, you'll learn how to allow apps from any source.
Requirements
- A Mac running macOS (version 10.8 Mountain Lion or newer).
- Administrator privileges (password) to change system security settings.
Method 1: Through the Graphical Interface (Recommended)
Step 1: Open System Settings
Click the Apple menu (the apple icon in the top-left corner) and select System Settings. Then navigate to the Security & Privacy section.
Step 2: Unlock Settings
At the bottom of the window, in the General section, you'll see a lock icon. Click it and enter the administrator password to unlock the settings.
Step 3: Select App Source
After unlocking, the option Allow apps downloaded from will become available. Select Anywhere.
Step 4: Confirm the Change
Close the System Settings window. The change takes effect immediately. You can now install apps from any source.
Method 2: Through Terminal (For Advanced Users)
If you prefer using the command line, you can disable Gatekeeper using the spctl command.
Open Terminal (in Applications → Utilities or via Spotlight search) and run:
sudo spctl --master-disable
You will be prompted to enter the administrator password. After this, the setting will change to "Anywhere."
⚠️ Important: Using
sudorequires caution. Ensure the command is entered correctly.
To revert to the default setting (App Store and known developers only), run:
sudo spctl --master-enable
Verifying the Result
Try installing or launching an app that was previously blocked. If the setting was applied, macOS will not show a warning about the app being from an unidentified developer. Instead, a prompt to confirm (e.g., via Control-click) may appear on first launch.
Potential Issues
'Anywhere' Option is Unavailable (Grayed Out)
If the option is inactive even after unlocking, macOS Management might be enabled on your Mac (e.g., via a configuration profile). In this case, contact your administrator.
App Still Won't Launch
Even with sources allowed, some apps may still be blocked if they are damaged or improperly signed. Try:
- Opening the app via the context menu: hold the Control key and click the app, then select Open.
- Checking the app's signature with the command:
Ifspctl -a -vv /path/to/application.appinvalidis output, the app is unsigned or the signature is invalid.
Setting Resets After macOS Update
Major macOS updates may reset security settings. If you see warnings again, check the setting and repeat the steps if necessary.