"Can't open XXX.app because it is from an unidentified developer"

When a user installs a Mac application, it appears "Cannot open XXX.app because it is from an unidentified developer", as shown in the figure below:
Insert picture description here

In this case, the solution is very simple, the steps are as follows:

  • Open the system preferences interface, enter security and privacy

  • Tap the lock icon in the lower left corner to unlock and change permissions

  • Change the apps that are allowed to download from the following locations to "Any Source" and then open the app

If there is no "Any Source" option (macOS Sierra 10.12 and above users may encounter it), follow the steps below:

  • Open the terminal (Terminal.app)

  • Copy and paste sudo spctl --master-disable, press enter

  • Enter your account password, press Enter to confirm execution (the password will not be displayed, just enter it directly)

Guess you like

Origin blog.csdn.net/yjk13703623757/article/details/108557733