如果碰到mex -setup时无法找到编译器的问题
关于关于网上提到的许多10.11可行解决方法以及matlab官网提出的方法,在10.12中并不可用(官网搪塞说2016版不支持10.12,确实bug多,不过要是实在需要也是有办法的)。
以下是matlab官网上给出的10.11的办法:(10.12在后面)
“Please note that the instructions and patch provided here is specifically written for using Xcode7.0 with MATLAB R2015b. Please contact MathWorks Technical Support if you are using Xcode 7.1 or higher.
By default, MATLAB R2015b does not detect Xcode 7.0. To add support for Xcode 7.0 in MATLAB R2015b, download the files attached to this article. Please follow these instructions to download and install the files (screenshots were taken in Mac OS X 10.10.5 Yosemite):