MATLAB: I have xcode 9.0 and detected by Matlab, why I’m still receiving this error

invalid mex file

Invalid MEX-file '/Users/apple/Desktop/IACL/resolution/matlab/tool_codes/distmesh/trisurfupd.mexmaci64': dlopen(/Users/apple/Desktop/IACL/resolution/matlab/tool_codes/distmesh/trisurfupd.mexmaci64, 6): Library not loaded: @loader_path/libmwlapack.dylib Referenced from: /Users/apple/Desktop/IACL/resolution/matlab/tool_codes/distmesh/trisurfupd.mexmaci64 Reason: image not found.

Best Answer

fixed.
Re-compile the file.