Can't use mex function in Macbook with MATLAB R2018b
Show older comments
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!!!
Answers (1)
drummer
on 6 May 2020
0 votes
I think you're supposed to compile your mex files for macOS so you get mexmaci64 files.
Also, your Xcode is up-to-date?
Cheers.
Categories
Find more on Startup and Shutdown 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!