Unable to package app on App Designer, "Packaging the app...Failed to build Matlab apps file because app is self-contained."?

9 ビュー (過去 30 日間)
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.

回答 (1 件)

Shaun Forth
Shaun Forth 2021 年 9 月 24 日
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

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by