xcrun: error: SDK "macosx10.13.4" cannot be located

I wanna run a C++ file 'mexCoarseGrainGamma.cpp', but there is a error, such like,
>> mex mexCoarseGrainGamma.cpp
Building with 'Xcode Clang++'.
xcrun: error: SDK "macosx10.13.4" cannot be located
xcrun: error: SDK "macosx10.13.4" cannot be located
xcrun: error: SDK "macosx10.13.4" cannot be located
xcrun: error: SDK "macosx10.13.4" cannot be located
xcrun: error: SDK "macosx10.13.4" cannot be located
MEX completed successfully.
Do anyone know what is the problem? And how to fix it? Thank you in advance.

 Akzeptierte Antwort

Sangeetha Jayaprakash
Sangeetha Jayaprakash am 19 Jul. 2018

0 Stimmen

This suggests that the Xcode compiler is not being found. Its probably because of an out of date options file. This might help :
If not, what is the output of running the following command in MATLAB?
mex -v -setup

3 Kommentare

Wang Yankai
Wang Yankai am 20 Jul. 2018
Thank you so much! I changed the compile path of Matlab to Xcode, then it worked. Maybe it could work also, thank you anyway!
Yes, you're right, I just did like this.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by