Hi Outsystems forum,
Recently I've got this message when generating iOS native platform of our mobile app project. The error log said:
Error: Error installing a Cordova plugin. Due to security concerns, the required dependency for the 'semver' node module in a plugin hook was missing. For more details, check the product documentation on how to ensure your plugins node dependencies.
I've tried to do some research to find similar issue, like on this thread: https://www.outsystems.com/forums/discussion/67469/semver-cordova-plugin-add-swift-support-getting-issue-while-generating-ios/But we don't use Swift Support plugin so I'd think it's from the other plugin (or else).
Here's the detailed error log:
Could it be another plugin that caused this? Do we need to change MABS version? Unfortunately it's not stated in the error log. We are using MABS Version 6.3 for the mobile app
Dear Aditya,
It seems like your application is indeed using a reference of the swift support plugin or there is any other component, which is used in your application, where the Swift Support plugin is has been added as a reference.
Now to fix this issue, you have to follow the below steps:
1. Open the swift support plugin and modify the git path in the extensibility configuration of that plugin to the below path:
https://github.com/DavidSousa/cordova-plugin-add-swift-support#v1.1
and publish it. It seems like the plugin is using an old version of code from the git hub. The developer has modified it recently. Please refer to the answer marked as solution at [Swift Support Plugin] [semver] cordova-plugin-add-swift-support getting issue while generating iOS | OutSystems
2. Refresh the dependencies of all other cordova plugins whose reference you are using in your application, as you do not know which component is using the swift support plugin.
3. Refresh the dependency of your main application, publish it and then try to generate the app again.
Hope this helps.
Cheers !
Shounak
Are you using any other cordova plugin in your application? It is not clear from your screenshot about other cordova plugins you are using.
Regards,
yes, we uses various cordova plugin in our app. this is the Error build log from service center:
Hi Shounak,
Thank you, it's working as expected :) marked your post as solution. Once again thank you for your help.