macOS 10.15 blocks mex files in Matlab
I just update to iOS 10.15 on a 2019 iMac. When I attempt to run mex files in Matlab the anti-malware feature block the program and does provide options for making an exception. This is a functionality breaking flaw in software used in multiple fields. If no one has a work around for this issue apple really needs to get on it.
The sequence required to generate this error is 1) open Matlab 2) navigate to the folder containing the file I want to use 3) call the compiled program in the command window
Here is a screen cap of the error message
--------------------------------------------------------
Here is a copy of the error message returned in the Matlab command window:
"Invalid MEX-file '/Users/alexander/Documents/MATLAB/TRENTOOL3/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64':
dlopen(/Users/alexander/Documents/MATLAB/TRENTOOL3/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64, 6): no suitable
image found. Did find:
/Users/alexander/Documents/MATLAB/TRENTOOL3/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64: code signature
in (/Users/alexander/Documents/MATLAB/TRENTOOL3/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64) not valid
for use in process using Library Validation: library load disallowed by system policy"
---------------------------------------------------------
Here is the hardware overview for my machine
Model Name: iMac
Model Identifier: iMac19,1
Processor Name: 6-Core Intel Core i5
Processor Speed: 3 GHz
Number of Processors: 1
Total Number of Cores: 6
L2 Cache (per Core): 256 KB
L3 Cache: 9 MB
Memory: 16 GB
Boot ROM Version: 1037.0.73.0.0
SMC Version (system): 2.46f12