MEX cannot find a supported compiler in MATLAB R2015b after I upgraded to Xcode 8.0
Show older comments
I installed Xcode 8.0 on my Mac and tried to use MEX. But I received the following error at the MATLAB command prompt. Please help, thanks.
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit
Accepted Answer
More Answers (4)
Karthikeyan Chandrasekaran
on 7 Nov 2016
0 votes
I followed the above steps.I could see MacOSX10.12.sdk already there. but still i am not able to figure out the problem
OS:MACOS i am using Xcode_beta,MATLAB2016b..
>> mex -setup C Warning: Xcode is installed, but its license has not been accepted. Run Xcode and accept its license agreement.
Error using mex No supported compiler or SDK was found.
Can anyone please help me regarding this where i am going wrong ?
1 Comment
Walter Roberson
on 7 Nov 2016
Go into Launcher, click on XCode. Or find it in Applications and double-click it. When it starts up it will ask you to confirm that you accept the license. Once you accept it, mex will work.
changxun fan
on 26 Feb 2017
0 votes
it's work! thank so much.
xu tiantian
on 19 Aug 2018
0 votes
Walter Roberson's answers have solved my problems perfectly. Thanks so much.
Melanie Renn
on 23 Jul 2020
Edited: Melanie Renn
on 23 Jul 2020
I installed Xcode 11.3.1 on my Mac (OS Catalina 10.15.5) and tried to use MEX. I followed Walter's steps above, but I am still getting the following error:
Error using mex
No supported compiler was found. For options, visit
https://www.mathworks.com/support/compilers.
Please help. Thanks in advance.
1 Comment
Zahra Ashouri
on 17 Jan 2021
I have this problem too, were you able to solve it?
Categories
Find more on COM Component Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!