banner
半米牙

半米牙的笔记

分享技术、记录生活
email

Solution for "Package is Damaged" Error on macOS

The software installation package downloaded from the internet often prompts:

xxx is damaged and cannot be opened. You should move it to the Trash.

Now let's summarize the solutions.

In general, Method 1 and Method 2 can solve the problem. If neither of these two methods works, please try Method 3.

Method 1#

In System Preferences - Security & Privacy - General tab, select the option "Allow apps downloaded from: Anywhere".

Method 2#

If there is no "Anywhere" option, open Terminal and execute the following command:

sudo spctl --master-disable

Method 3#

If Method 1 and Method 2 do not work, execute the following command in Terminal:

sudo xattr -r -d com.apple.quarantine /path/to/app

where /path/to/app is the path where the app is located. For example, for XMind ZEN.app, it would be:

sudo xattr -r -d com.apple.quarantine /Applications/XMind\ ZEN.app
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.