Appdesigner: Remove Simulink dependency
Mostra commenti meno recenti
Hi everybody,
I have accidentaly added a Simulink component to my app and now I cannot compile it anymore.
I have the MATLAB compiler but not the Simulink compiler, to overcome the problem I have removed the simulink component but the dependency is still there, hence the appdesigner does not allow me to compile the app.
Is there any trick that I can use to fix this problem?
Best regards,
Giulio
2 Commenti
Adam Danz
il 22 Apr 2025
This issues has been addressed and will be fixed in a future release. In the meantime, the recommended workaround is explained by Ranjani's answer in this thread: https://www.mathworks.com/matlabcentral/answers/2176452-why-can-t-i-remove-reference-to-simulink-in-app#answer_1564037
Giulio Giovannetti
il 23 Apr 2025
Risposta accettata
Più risposte (3)
Christopher
il 17 Ago 2024
1 voto
Does anyone have a solution to removing the Simulink dependency? It cannot be manually removed due to the grayed out App Designer code.
1 Commento
Giulio Giovannetti
il 21 Ago 2024
I just had the same problem. My simple solution: the .mlapp file is nothing more than a zip file. You can rename it to .zip, unzip it and:
- Edit the matlab/document.xml file (it contains the code part of the app) and remove the unwanted simulink code.
- Open the appdesigner/appModel.mat file, remove the simulink field and save it.
Finally zip everything back up again and rename the .zip file to .mlapp.
Voilà.
1 Commento
Giulio Giovannetti
il 1 Ott 2025
To remove the Simulink dependency from your app and allow it to compile successfully using the MATLAB Compiler, you can try the following steps:
1.Clean Up Unused Functions and Blocks:
- Make sure that you remove any unused functions or blocks from your app that might still be referencing Simulink components.
2. Check Dependencies in AppDesigner:
- Open your app in AppDesigner and go to the "Code View" tab.
- Manually inspect the code to ensure there are no references to Simulink components.
3. Update Compiler Options:
- Check the compiler options in the MATLAB Compiler to ensure that it is not trying to include Simulink dependencies.
4. Rebuild the App:
- Try rebuilding your app after making sure that all references to Simulink components are removed.
Categorie
Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
