Unable to package app on App Designer, "Packaging the app...Failed to build Matlab apps file because app is self-contained."?
6 views (last 30 days)
Show older comments
I am unable to change to package my app, when I try to package the app a error/ log file(Log.txt) is generated
Packaging the app...Failed to build Matlab apps file because app is self-contained.
Error in com.mathworks.jmi.NativeMatlab>SendMatlabMessage at -2
Error in com.mathworks.jmi.NativeMatlab>sendMatlabMessage at 259
Error in com.mathworks.jmi.MatlabLooper>sendMatlabMessage at 120
Error in com.mathworks.jmi.Matlab>mtFeval at 1712
Error in com.mathworks.jmi.MatlabWorker>feval at 197
Error in com.mathworks.toolbox.apps.plugin.PackageCommand$3>runOnMatlabThread at 180
Error in com.mathworks.jmi.MatlabWorker$2>run at 79
Error in com.mathworks.jmi.NativeMatlab>dispatchMTRequests at 410
This same app was working perfectly fine while when app images and associated matlab files(.m) were in same folder, but with this version I am getting this above error while packaging the app, the app runs as expected with F5.
0 Comments
Answers (1)
Shaun Forth
on 24 Sep 2021
Hi Vinyas,
I just had a similar error today with R2021a and over 2 years after yours!
I think the issue is that within Package App, the Output Folder is set to be the same as one of the folders that has been set to be included in the App. Certainly when I choose a new Output Folder my problem was resolved.
I hope your haven't been waiting on this answer for 2 years.
Shaun
0 Comments
See Also
Categories
Find more on Downloads 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!