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

조회 수: 6 (최근 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 CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by