[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/
    原文作者:Goldman2000
    原文地址: https://www.jianshu.com/p/d88ca5b752ec
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞