MATLAB: Can’t find mex compiler in MATLABr2015a with Xcode 8.1

macmex compilerr2015axcode

I have installed Xcode latest version(8.1) on my MAC (El Capitan 10.11.5) but when I tried to build MEX file in MATLAB 2015a I got the following error:
error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2015a/maci64.html.
I have tried several suggested solutions on the forum but no avail. Any suggestions?
Related Question