Skip to content

Instantly share code, notes, and snippets.

View SpieringsAE's full-sized avatar

Maud Spierings SpieringsAE

View GitHub Profile
@martinandersen
martinandersen / mex_no_xcode.md
Last active June 24, 2024 03:11
How to build MEX files with MATLAB on macOS without installing Xcode

Building MEX files with MATLAB on macOS without installing Xcode

MATLAB requires Xcode to build MEX files on macOS: if only the Command Line Tools are available, MATLAB complains that "Xcode is installed, but its license has not been accepted."

To build MEX files with only the Command Line Tools installed, open Terminal and execute the following command to create a property list:

defaults write com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense 12.0