MATLAB: Do I get the error “LSOpenURLsWithRole() failed with error -10810” when trying to install MATLAB on a Mac

MATLAB

I am attempting to install MATLAB on my Mac, but launching InstallForMacOSX.app doesn't do anything. Launching it in Terminal returns the following error:
ERROR: LSOpenURLsWithRole() failed with error -10810 for the file /Users/Bob/Downloads/InstallForMacOSX.app.

Best Answer

This error occurs when trying to run an unsigned executable from a network location or other protected location on MacOS Catalina 10.15. This is a new feature to the operating system which can prevent files moved to a MacOS machine from running successfully.
A workaround for the issue is to move the entire installer or set of Download Only files to a local directory that is not protected. An example of this is /tmp or /Users/Shared. You should then be able to run the installer.