mac Matlab 2018b with xcode10 installed still No supported compiler was found
Afficher commentaires plus anciens
Warning: Xcode is installed, but its license has not been accepted.
Run Xcode and accept its license agreement.
> In make (line 13)
Error: path_to_libsvm/libsvm-3.23/matlab/make.m failed (line 13)
No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.
I would like to compile some C codes with mex. However, even with brand new matlab 2018b and xcode10(for now) installed on my mac could not compile these files.

Yeah, I know the warning about Xcode license issue and that's strange since I DID aceept these license by typing
sudo xcodebuild -license
in command line and accepting it.
So anyone with same experience or some suggestions ? I would be very appreciated if you do ! 0.0

3 commentaires
Ran Chen
le 14 Déc 2018
Please check the following link, which might be helpful
Cristian Czegledi
le 21 Mar 2019
Hi, I have the same problem. I tried various things, including the one suggested by Ran Chen, but nothing worked. Did you solve it somehow?
xie ling
le 21 Mar 2019
Réponses (2)
Cristian Czegledi
le 6 Sep 2019
3 votes
Hi, in the meantime I found a solution described here
Open the following 2 files
/Applications/MATLAB_Rxxxxx.app/bin/maci64/mexopts/clang_maci64.xml
/Applications/MATLAB_Rxxxxx.app/bin/maci64/mexopts/clang++_maci64.xml
where you have to replace xxxxx with your Matlab version (I have R2018b),
and add a new line with "<cmdReturns name="echo 4.3.3"/>" before the line with
"<cmdReturns name="defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense"/>"
To be honest I don't understand what's going on, but fortunately it works.
Hope it works for you.
Cristian
2 commentaires
Guglielmo Genovese
le 22 Fév 2021
Thank you! That was really useful.
However, in the two files I changed the name "com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense" with "com.apple.dt.Xcode IDEXcodeVersionForAgreedToBetaLicense". You can check the right name for your agreed license by opening that file /Library/Preferences/com.apple.dt.Xcode.plist
Guglielmo
Parvin Zarei
le 17 Déc 2021
Thanks, It was very helpful.
xie ling
le 6 Sep 2019
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!