Clear Filters
Clear Filters

How do I create a mex file in Xcode 7

2 views (last 30 days)
I have installed Xcode 7, and when i use the IDE to build pre-existing code for mex files, it works fine, yielding a file with a .mexmaci64 suffix. However when I try to create a new target, Xcode no longer offers me the Mathworks template, so it is not clear what sort of template I should create. I tried command line tool but this is obviously wrong: it builds fine but creates a file without a suffix. What template type should I select? Is there a Mathworks template for Xcode 7?
Also, do I still need the mex.xcconfig file? I included it as I used to with older Xcode versions, but it seems to have no effect.

Accepted Answer

John Knowles
John Knowles on 16 Jun 2016
Answering my own question. It turns out that the old template for Xcode 5.1 still works, though it does seem to destabilize Xcode: I've had several crashes of Xcode, despite it being an extremely stable app otherwise. But once the template is installed, Xcode offers the familiar Mex-files option when a target is created. And choosing this option results in the mex.xcconfig file being automatically included. After installing the template and restarting Xcode, there is still some manipulation of the build settings to be done (User path, library path etc don't seem to work with relative paths), but otherwise its business as usual.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!