Can't use mex function in Macbook with MATLAB R2018b

18 visualizaciones (últimos 30 días)
yuge qiu
yuge qiu el 5 de Mayo de 2020
Respondida: drummer el 6 de Mayo de 2020
I tried to use the mex function in MATLAB R2018b. But it failed and showed like below:
Building with 'Xcode with Clang'.
Error using mex
xcodebuild: error: SDK "macosx10.15.4" cannot be located.
xcrun: error: sh -c
'/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk
macosx10.15.4 -find clang 2> /dev/null' failed with exit code 16384: (null)
(errno=No such file or directory)
xcrun: error: unable to find utility "clang", not a developer tool or in PATH
It seems that the problem is happned in Xcode. Because I can run these two code.
mex -setup C++
mex -setup C
Thank you so much for your help!!!

Respuestas (1)

drummer
drummer el 6 de Mayo de 2020
I think you're supposed to compile your mex files for macOS so you get mexmaci64 files.
Check here to see if that's the problem you're facing.
Also, your Xcode is up-to-date?
Cheers.

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by