Compiling & Building MEX files for Matlab on a MacBook Pro using Xcode 2.4.1, Intel Compiler, Intel

How to to compile and link MEX files for Matlab using Xcode IDE on a Intel Core 2 MacBook Pro

You are now following this Submission

In these notes I will describe my first (successful) attempt to compile and link MEX files for Matlab using Xcode IDE on a Intel Core 2 MacBook Pro (but hopefully the procedure should be general enough to adapt to other scenarios). Since I am new to the Mac's world (after many years using solely Windows and a little bit of Linux) it is likely that this notes are not totally accurate or that some issues can be solved much easily. Do not hesitate to contact me and to send suggestions/corrections.

Cite As

Marco Zuliani (2026). Compiling & Building MEX files for Matlab on a MacBook Pro using Xcode 2.4.1, Intel Compiler, Intel (https://www.mathworks.com/matlabcentral/fileexchange/17602-compiling-building-mex-files-for-matlab-on-a-macbook-pro-using-xcode-2-4-1-intel-compiler-intel), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Automotive in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Important improvement that fixes the choice of the correct Mac-O type in order to avoid the problem of "persistence" while recompiling a MEX file during the same Matlab Session