Back up all data.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Select the text on the line below by dragging across it. Don't include the blank space at the end of the line.
sudo spctl --disable
Copy the selected text to the Clipboard (command-C). Click anywhere in the Terminal window, then paste (command-V). Press the space bar.
Now switch to the Finder and and select the application in question. Drag it into the Terminal window. More text will be added to what you entered.
Click in the Terminal window to activate it, then press return.
You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command.
You can then quit Terminal.