Can't use mex function in Macbook with MATLAB R2018b

17 Ansichten (letzte 30 Tage)
yuge qiu
yuge qiu am 5 Mai 2020
Beantwortet: drummer am 6 Mai 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!!!

Antworten (1)

drummer
drummer am 6 Mai 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.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by