The pre-built mex binary that ships with MICE (https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/MATLAB/req/mice.html#Builds) is for Intel macs. In order to use mice on an Apple Silicon mac with a native install of MATLAB (R2023b+) you need to recompile the toolkit. Fortunately, this is fairly straightforward. Prerequisite for this is having MATLAB (R2023b+ Apple Silicon) and Xcode command line tools installed (see here for some install notes on the latter: https://forums.developer.apple.com/forums/thread/677124). To verify that you have the command line tools working, run which cc
in a terminal. It should return /usr/bin/cc
.
- Download and uncompress the code archive as usual from https://naif.jpl.nasa.gov/naif/toolkit_MATLAB_MacIntel_OSX_AppleC_MATLAB9.x_64bit.html You can either manually uncompress the archive (run
tar xvzf mice.tar.Z
in your Downloads directory, or use the providedimportMice.csh
script, which does literally the same thing). - In a terminal, navigate to the top-level directo