title: Mac OS High Sierra Invalid Mex file and Symbol not found errors
body: <p>While running a Matlab code I get this error</p>
  
  <blockquote>
  <pre><code>Invalid MEX-file '/Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64':
     dlopen(/Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64, 6):
     Symbol not found: _mxCreateNumericArray_700
     Referenced from: /Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64
     Expected in: /usr/lib/libSystem.B.dylib
  in /Users/ericelharar/Documents/MATLAB/Eric_Pedro/BM3D/bm3d_thr.mexmaci64.
  </code></pre>
  </blockquote>
  
  <p>Tried looking for <code>libSystem.B.dylib</code> with no success </p>
  
  <p>tried <code>otool -L /Developer/SDKs/MacOSX10.13.sdk/usr/lib/libSystem.B.dylib</code>
  got error message </p>
  
  <blockquote>
  <pre><code>'/Developer/SDKs/MacOSX10.13.sdk/usr/lib/libSystem.B.dylib': No such file or directory
  </code></pre>
  </blockquote>
  
  <p>I'm using Mac OS  High Sierra 10.13.4 (17E199), Xcode 9.3 and Matlab 2018a</p>