Author Topic: Notes for Mac users (including Catalina / Big Sur security settings)  (Read 172 times)


  • Administrator
  • Hero Member
  • *****
  • Posts: 439
    • View Profile
    • My GPS Division profile
On macOS Catalina and Big Sur, the first time you try to run alphaMELTS for MATLAB/Python it may fail due to new security settings. If you see the option like "Move to Trash" and "Cancel" then click Cancel. Go to System Preferences -> Security & Privacy->General tab and select "Allow anyway", and then try again. The second time you will be asked whether to Open or Move to Trash, so pick Open.

On Mac, if you have Xcode installed, and it is up to date, this will work for alphaMELTS for MATLAB. If you do not have Xcode you do not need to install it, and you probably don't want to as it is huge(~10 GB)! Instead install just the Command Line Tools, which are < 1 GB; you will get some warnings when you run alphaMELTS for MATLAB, but they are harmless and can be suppressed.
  • If you install Homebrew then the Command Line Tools will be installed automatically
  • Otherwise see:
  • Copy and paste the following to Terminal to tell MATLAB that you agree to the Xcode license:
    /usr/libexec/PlistBuddy -c 'Add :IDEXcodeVersionForAgreedToGMLicense string 10.0' ~/Library/Preferences/
  • Finally when you open MATLAB type "mex -setup C" at the MATLAB command line (only needed once).