Mac software opening prompt: damaged and cannot be opened. Should you move it to Trash how?

The newly purchased Apple computer opens the software: "It is damaged and cannot be opened. You should move it to the trash" or "It is damaged and cannot be opened. Push out the disk image". How to solve this?

The first part:
1. Click the search icon in the menu bar, enter: terminal, after finding it, click to open, as shown in the figure below:

2. Enter the following command: (copy and paste it in), as shown in the figure below:

sudo spctl --master-disable

3. Enter! Enter the computer password (the password will not be displayed during the password input process, ignore and continue to enter), and then press Enter, as shown below:

4. Enter the computer password and press Enter, as shown in the figure below: (If it is a prompt: Sorry, try again. Please re-enter;)

This code is to open: System Preferences - Security and Privacy - General, in [Any Source], as shown below:

5. Open any source, and then read the second part of the tutorial operation below;

The second part: (open any source, if you still encounter damage in the future, just follow the steps below to solve it!)

1. Open the terminal again:

Enter the command: (copy and paste it in, enter a space after cr)

xattr -cr

Enter a space after cr! Do not enter! Do not enter! Do not enter! As shown below:

2. From the application or desktop , drag the damaged software into the terminal (behind xattr -cr), and press Enter! As shown in the picture below:
Note:
1. The software must have been installed in the application program, or dragged to the desktop first;
2. Enter a space after cr;
3. Only then can it be dragged into the terminal! Enter again! Cannot directly drag from the downloaded dmg file! This is invalid!

 

3. After dragging, enter the car again! After pressing Enter, open the software again and it can be opened normally!

If the operation is correct, it must be able to open. If it still prompts that it is damaged, only the operation is incorrect! There is no other reason! Please check the following 3 points:

Note:
1. The software must have been installed in the application program, or dragged to the desktop first;
2. Enter a space after cr;
3. Only then can it be dragged into the terminal! Enter again! Cannot directly drag from the downloaded dmg file! this is invalid

Sharing source: www.xxrjm.com/17880.html?aff=lmj3ql

Guess you like

Origin blog.csdn.net/huang88866/article/details/128666049