Getting Matlab 2012b to work with XCode 5 (OS X 10.9 Maverick)

Mathworks haven’t issued a patch for 2012b and OS X 10.9 so I ran the 10.9 patch (from and ran

mex -setup

I then modified the file (mex -setup tells you where this is, on my system its

edit ~/.matlab/R2012b/

In the section called

#PATCH: MacOSX10.8

remove the version numbers from CC and CXX and correct the SDKROOT. I also changed the deployment target to 10.9

#PATCH: MacOSX10.8


After a restart, mex worked fine.

Leave a Reply

Your email address will not be published. Required fields are marked *