“mexschurfun.mexmaci64” cannot be opened because the developer cannot be verified

2.2k Views Asked by At

I am trying to use CVX in MATLAB, but when I run a my code, I get this error:

“mexschurfun.mexmaci64” cannot be opened because the developer cannot be verified.

I have already tried changing my Mac security to "Allow anyway" for the “mexschurfun.mexmaci64” file, but it still gives me the same error. Any ideas how to fix this?

2

There are 2 best solutions below

0
On

The following answer is taken directly from the cvx forum.

This is a problem of the Gatekeeper in macOS. Go to System Preferences/Security & Privacy and then check the option “Anywhere” in “Allow apps downloaded from”. Follow these instructions if this option is not yet visible.

0
On

If you trust the source where you have downloaded FieldTrip, you can resolve these errors for all MEX-files at once by opening a terminal and typing

sudo xattr -r -d com.apple.quarantine LOCATION_OF_FIELDTRIP

sudo find LOCATION_OF_FIELDTRIP -name \*.mexmaci64 -exec spctl --add {} \;

where LOCATION_OF_FIELDTRIP is the place where you have unzipped FieldTrip. Following sudo you will have to give your administrator password.

The first command removes all FieldTrip files from quarantine, the second adds a Gatekeeper exception to all MEX-files.

Check the following link for more help: https://www.fieldtriptoolbox.org/faq/mexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified/