Here’s how to fix error code -36 on your Mac

Sometimes, when you try to copy or move a file on your Mac, you may see an error message on your Mac that says something like ‘The Finder can’t complete the operation because… (Error code -36).’ In this article, we’ll show you what it means and how to fix it.

What is error code -36?

Error code -36 relates to actions in the Finder, such as moving, copying, or deleting files. The error message will helpfully tell you which file is giving problems. When you see the file name, you may notice that it has a ‘.’ before its name and an ‘_’ later in the name (e.g., ‘.DS_Store’ is one file that may cause the error). That ‘.’ means the file is hidden in the Finder, and so can’t be read or written.

Did you know?

Your Mac stores hundreds of invisible files like .DS_Store, which contain lots of information about other files on your Mac and are essential for the Finder to function correctly. However, they perform no function on other file systems, so when you see one on a USB stick that you use on Windows PCs and your Mac or a network drive, it’s because the other file system has made it visible. Files named .DS_Store, for example, contain information about custom attributes for files like icon positions and Get Info comments.



What causes error code -36 on Mac?

Error code -36 usually occurs when a file with a ‘.’ and ‘_’ in its name becomes corrupted or there is some other problem with it. When that happens, the Finder is unable to work with the files you are trying to copy, move, or delete because it can’t find the information it needs.

Here are some other reasons why you may see error code -36 on Mac: 

  • Software bug in your macOS version
  • Issues with read/write file permissions
  • If you see it when you use an external drive, it may be corrupted or not properly connected

How to fix error code -36 on Mac

Below, we will introduce two ways to fix error code -36 — manually with a few workarounds and automatically with a Mac optimization tool.

How to fix error code -36 automatically

A quick way to try and address this and other Finder errors is to use a handy app for resolving all kinds of problems on your Mac. As well as helping you fix issues, CleanMyMac X can also improve your Mac’s performance, keep it free from malware, and free up several gigabytes of space currently occupied by junk. To fix the error code -36 problem, we will use CleanMyMac X to reset the Finder. You can download CleanMyMac X for free here

Safari reset selected in the Uninstaller module in CMMX
  1. Open CleanMyMac X and choose the Uninstaller module.
  2. Locate the Finder in the window on the right.
  3. Click the arrow to the right of its name.
  4. Select the buttons next to Preferences, Supporting Files, and Logs.
  5. Click Your Selection and choose Reset.
  6. Click the Reset button.
Tip

To allow CleanMyMac X to reset all default macOS apps, go to CleanMyMac X Settings. Here, click Ignore List > Uninstaller. Deselect the box next to ‘Ignore system applications.’

You can use CleanMyMac X to reset any app. In most cases, you just have to check the app name and choose ‘Reset’ from the menu. In the case of the Finder, because macOS doesn’t allow us to uninstall it or make changes to the app binary itself, we have to select Preferences, Supporting Files, and Logs separately, as in step 4 above.

How to fix error code -36 manually

If you want to try to fix error code -36 manually, there are a few workarounds that could help.

1. Use Terminal

The solution to the error, in most cases, is to merge the files causing the problem with their parent files using a Unix command. That will eliminate the problematic files while retaining the information they hold. As with every other command-line interaction on your Mac, this is done using Terminal. It’s straightforward to do, but you should make sure, as with all Terminal commands, that you type in the command exactly as it is displayed here:

  1. Go to Applications > Utilities.
  2. Double-click Terminal to open it.
  3. Type dot_clean
  4. In the Finder, navigate to the folder that contains the files you were trying to copy, move, or delete.
  5. Drag the folder onto the Terminal window after the command you just typed.
  6. You should now see the file path displayed after the command you typed.
  7. Press Return.
  8. Try moving, copying, or deleting the files again.
  9. Quit Terminal.
Tip:

In step 5 above, we told you to drag a folder onto the Terminal window. That’s a shortcut for typing out the path to the folder in full. It can be convenient if you’re unsure of the correct file path or how it should be formatted or if you don’t want to type a long pathname. You can use it with any Terminal command that needs a file path as a parameter.



2. Manually change file permissions

Sometimes, the error code is caused by corrupted file permissions, so another way to solve it is to check those permissions and change them if necessary. Here’s what you need to do: 

  1. Go to the Finder and select the file or folder you want to copy, delete, or move.
  2. Control- or right-click it and choose Get Info. You can also press Command + I to open the same window.
  3. Scroll down until you see the Sharing & Permissions section.
  4. Set permissions for your current user to Read & Write. You may need to click the lock icon at the right side of the window and enter your admin credentials if you can’t change it.
  5. Close the Info window.

3. Use Disk Utility to run First Aid

Another common reason why you may see the error message is that the disk has got corrupted. Luckily, macOS comes with a built-in tool that can help you fix it — Disk Utility. Here’s how to use it: 

  1. Open Disk Utility from Applications > Utilities. Or you can use the Spotlight search to find it or ask Siri to open the app for you.
  2. Select your startup disk from the sidebar.
  3. Disk Utility window
  4. Now, in the toolbar, locate First Aid and click it. 
  5. Click Run. 

If you use an external drive when you get the error, first, make sure that it’s properly connected. If it is, follow the steps above to run First Aid for your external drive. But at step 2, select it instead of your startup disk.

4. Delete the.DS_Store files

Another quick fix is to find and delete the.DS_Store files. If they got corrupted, it may cause error code -36. To delete them, you’ll need to use Terminal once again: 

  1. Open Terminal from Applications > Utilities or using the Spotlight search or Siri. 
  2. Type the following command and press Return:
    sudo find / -name ".DS_Store" -depth -exec rm {} \
  3. Enter your password if asked.
  4. Wait for the command to run and restart your Mac. 

5. macOS update

The final fix is to update your macOS. The thing is that you may see the error message because of a software bug that has been addressed in a new version of the operating system. More than that, it is always a good idea to keep your Mac updated to the latest macOS version compatible with your computer to ensure that you have all security patches installed and enjoy the most recent performance improvements.  

Here’s a quick reminder of how to update your Mac:

  1. Go to System Settings > General > Software Update. 
  2. Click Update Now or Restart Now and wait for the update to be installed. 
  3. Take a moment to enable automatic updates. 
System Preferences - Software Update

If nothing helped, you may need to contact Apple Support for more tips.

Error code -36 refers to a rare problem in macOS that affects the Finder. It usually happens when you try to copy, move, or delete a file and can be caused by the Finder running into problems with hidden files that store attributes for files and folders, such as the position of icons or comments on files. You can fix it using Terminal or by resetting files in the Finder using CleanMyMac X’s Uninstaller module.

Laptop with CleanMyMac
CleanMyMac X

Your Mac. As good as new.