11
Views
4
Comments
Solved
Cordova plugin requires dependency for 'xml-js' preventing app generation on IOS

Hello OS community,

We have subscribed to the Anyline plugin for passport and barcode scanning in our company's mobile apps. Unfortunately, with the latest versions of the Anyline plugin, a new requirement for the 'xml-js' dependency has emerged. This has resulted in a challenge during the generation of our mobile apps on iOS, as indicated by the attached error and log files. The perplexing aspect of this situation is why OutSystems is encountering difficulty in installing this dependency during the iOS app generation process, especially considering that other dependencies are successfully installed.

Notably, this issue does not occur on Android. The necessity to upgrade to the latest Anyline versions became apparent after the deprecation of MABs 7 and 8, coinciding with the onset of this problem.

Has anyone else encountered a similar issue before? Your insights and experiences would be greatly appreciated.


Cheers.
Pedro Mascarenhas


IOS_Error.png
DS MobileiOSBuildLog.txt
2025-12-19 11-23-25
João Gonçalves
Staff
Solution

Hi @Pedro Mascarenhas , this is due to a limitation with npm, the underlying node dependency manager used by cordova to install plugins.

Since the plugin is being provided as a resource file, when cordova is installing it to the project via npm, it won't install any dependencies that it might have.

A possible workaround is to run `npm install` on the plugin before uploading it to Service Studio, this way it will contain the `node_modules` folder in it with all it's dependencies. Alternatively, if the plugin is hosted somewhere online (E.g. Github) it will install it's dependencies upon adding the plugin to the mobile app.

Regards,

João Gonçalves

UserImage.jpg
Pedro Mascarenhas

Hi Sunil,
We already do that, we have the plugin resource file attached and on the module Extensibility Configuration we are pointing to the plugin as it can be seen below.

2025-12-19 11-23-25
João Gonçalves
Staff
Solution

Hi @Pedro Mascarenhas , this is due to a limitation with npm, the underlying node dependency manager used by cordova to install plugins.

Since the plugin is being provided as a resource file, when cordova is installing it to the project via npm, it won't install any dependencies that it might have.

A possible workaround is to run `npm install` on the plugin before uploading it to Service Studio, this way it will contain the `node_modules` folder in it with all it's dependencies. Alternatively, if the plugin is hosted somewhere online (E.g. Github) it will install it's dependencies upon adding the plugin to the mobile app.

Regards,

João Gonçalves

UserImage.jpg
Pedro Mascarenhas

Thanks a lot @João Gonçalves, your proposed solution solved the issue!!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.