I want to install a C/C++ compiler for Matlab R2015b. I am running OSX El Capitan 10.11.3. I installed the newest version of Xcode (Xcode Version 7.3 beta 3).
According to MathWorks, Xcode 7.x should be compatible with Matlab R2015b. http://www.mathworks.com/support/compilers/R2015b/index.html?sec=maci64 I also followed the additional steps to add support for Xcode 7.0 in MATLAB R2015b (this is the most recent post by MathWorks regarding using any Xcode 7.x) http://www.mathworks.com/matlabcentral/answers/246507-why-can-t-mex-find-a-supported-compiler-in-matlab-r2015b-after-i-upgraded-to-xcode-7-0#answer_194526
When I run "mex -setup" in Matlab I get the following error message:
Warning: Xcode is installed, but its license has not been accepted. Run Xcode and accept its license agreement.
I have already tried the following in my terminal: sudo xcodebuild -license
It loads the license and I am able to scroll through and type "agree". Still, Matlab gives me the same error.