When I try to execute my compiled application on macOS via the shell script in the "for_testing" directory, why do I receive the following error:
$ bash run_untitled.sh /Applications/MATLAB/v92
——————————————
Setting up environment variables
—
DYLD_LIBRARY_PATH is .:/Users/username/Applications/MATLAB/v92/runtime/maci64:/Users/username/Applications/MATLAB/v92/bin/maci64:/Users/username/Applications/MATLAB/v92/sys/os/maci64
dyld: Library not loaded: @rpath/libmwlaunchermain.dylib
Referenced from: /Users/username/Desktop/untitled/for_testing/./untitled.app/Contents/MacOS/untitled
Reason: image not found
run_untitled.sh: line 29: 7144 Abort trap: 6 "./untitled.app/Contents/MacOS/untitled”
Best Answer