[Mac] Matlab mex Error: SDK cannot be located

问题描述:

Matlab 2017b for mac, 编译c链接文件时出错:

mex file.c

出现错误提示:

Building with 'Xcode with Clang'.
xcrun: error: SDK "macosx10.14.1" cannot be located

解决方式:

在Terminal中输入:

> sudo xcode-select --switch /Applications/Xcode.app/

你可能感兴趣的:([Mac] Matlab mex Error: SDK cannot be located)