Why do I get a "Previously accessible file is now inaccessible" error message when running a deployed standalone application created with MATLAB Compiler?
Show older comments
I have a MATLAB code with GUI which runs fine when executed from the MATLAB Command Window. I can build it successfully, but when I try to run the compiled app, I get the following error:
The file 'C:\Users\<username>\Documents\GUI_main.m' is not in the application's expanded CTF archive at 'C\Users\<username>\AppData\Local\Temp\<username>\mcrCache7.17\GUI_ma1'.
This is typically caused by calls to ADDPATH in your startup.m file or matlabrc.m files.
Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
Previously accessible file "C:\Users\<username>\Documents\GUI_main.m" is now inaccessible.
Are some of my "addpath" commands causing this issue? How do I resolve this?
Accepted Answer
More Answers (0)
Categories
Find more on Search Path 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!