I compiled a standalone application from my MATLAB code using MATLAB Compiler R2012b, on my Mac OS X. When I try to run my standalone application by double clicking on the application from the Finder window, I get this error message:
Dyld Error Message:
Library not loaded: @rpath/libmwcpp11compat.dylib
Referenced from: /Users/USER/Desktop/*/TestApp1.app/Contents/MacOS/prelaunch
Reason: image not found
I have the right version of MCR (v80) installed correctly in the default location. The standalone application runs fine when I run the accompanying .sh file from the terminal window, or if I call the standalone application from the MATLAB command window.
How can I make it run without errors when double clicking the .app file in the Finder window?
Best Answer