MATLAB: Mex files compiler mac os 10.12

macMATLABmexmex compiler

Hi, I'm trying to run some Matlab 2018b codes that use and compile MEX files on my Mac with Mac OS 10.12. I've installed Xcode but still get an error when running the codes saying that "No supported compiler was found". Any help for this?