Like clockwork, my matlab updates have gotten out of sync with Xcode updates. It seems like fixing this SDK error always requires a different hack each year. This year I got the error:

No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/current_release/.


To fix it, I replaced all occurrences of 10.9 with 10.11 in /Applications/MATLAB_R2017a.app/bin/maci64/mexopts/clang{++,}_maci64.xml

ld: warning: object file was built for newer OSX version (10.11) than being linked (10.9)


For now, I’m assuming that I can ignore them. We’ll see how far that gets me.

Tags: , , ,

### One Response to “”

1. ajx says:

Yet another time I’ve been frustrated trying to figure out where matlab is finding it’s mex options. This time I realized the answer is right in front of me. If you pass the -v (verbose) flag to your mex compile, you should see a whole bunch of debug messages including something like:

Options file: /Users/ajx/Library/Application Support/MathWorks/MATLAB/R2017a/mex_C++_maci64.xml


Replacing all 10.9s with 10.11s fixed the remaining problem above.