If you are installing an app from third-party source on your Mac, then you will deal with an error message, saying that “xxx will damage your computer. You should move it to the Trash.”
This might be the most common errors for those who themselves install apps on their Mac. In the previous MacOS versions, to install unknown source apps, you need to enable Anywhere in System Preferences > Security & Privacy section. However, after updating the MacOS High Sierra or later versions, this feature is already hidden.
In case you have not yet to disable Gatekeeper, then you will see an error message “xxx.app damaged and can’t be opened. You should move it to the Trash” or “App can’t be opened because it is from an unidentified developer”
If you are still encountering the same error when installing third-party apps on your Mac, I’m going to show you show how to disable GateKeeper to install unknown source apps outside the Mac App Store.
Method 1: Run cmd file through Terminal to disable Gatekeeper
- First, you need to download this file on your computer. Save it on an easy-to-find folder to use later
- Double click on the downloaded file and then run the command inside it
- Select an option you prefer by entering a number. Here you are trying to disable Gatekeeper, so enter 1. Enter your Mac passcode, not your Apple ID password.
When you enter your Mac passcode, it will show up nothing. Just type in the correct password and hit Enter.
Now, you can run any app and the error message will no longer appear.
Method 2: Manually enter commands in Terminal
This method is a little harder than the first one, but it’s still easy and just take you a few seconds.
- First, click on Launchpad, search for Terminal and open it
- Next, type in the following command in Terminal and hit Enter:
sudo spctl --master-disable
- Now, enter your Mac passwỏd and hit Enter.
- Check if the command is already applied by entering the command:
- If you see assessments disabled prompt, it means you have been successful. To check it, just go to Preference > Security & Privacy
If you have followed two mentioned methods above, but you could still see the error: “damaged and can’t be opened. You should move it to the Trash,” then right click and choose Open > Open for the first time.