Unable to install pods in outsystems environment using cordova plugin

I am working on cordova plugin , I have achieved functionality in native as well as cordova hybrid app for Android in Outsystems. But When i am trying generate build from Outsystems for iOS and installing application in iOS ,app gets crash .


Native and hybrid both are working .


Native Code Link : https://drive.google.com/drive/folders/1kZrb80_sOdDytx34TPhH8MuSMX0ONyjA


Hybrid Code Link : https://drive.google.com/drive/folders/1dgUMzBNnZJxQ9bb28hUoI5Czm2K8VpDH


Cordova Plugin Code Link : https://github.com/vviek/cordova-idnow-ios


Can anyone tell me what i am doing wrong in plugin .

Hello Vivek,

Can you please share the build log that is giving the error?

Thanks!

Armando Gomes wrote:

Hello Vivek,

Can you please share the build log that is giving the error?

Thanks!

Hi Armando ,

I am getting build success ,

I am installing some libs using pods ,mentioned in cordova plugin ,ex: Alamofire lib

But these libs are not getting installed by outsystems.

Due to which crash is happening.



If OutSystems is building with success but not including it, then I would suggest that you try to include your plugin in a local Cordova project and run from there.

This seems to be related to the way you're creating your plugin (read: plugin.xml and source files) and not really to OutSystems - at least for now.

I suggest that you search for help in StackOverflow or similar communities where they might be able to help you better.

Cheers!

Hi Armando ,

I tried including my plugin in my local cordova project and its working fine. Link of Cordova project i have shared in question .

Even i asked the same question in stackoverflow as well.

But not getting any response .



You'll need to be aware of which versions MABS uses to generate the apps. Check them here: https://success.outsystems.com/Support/Release_Notes/Mobile_Apps_Build_Service_Versions


Another thing is that MABS 6.1 does not like the use-frameworks. I recommend you to convert the CocoaPods dependencies to universal libraries. For that I recommend this awesome tool: https://github.com/CocoaPods/Rome


Hope this helps!

André Gonçalves wrote:

You'll need to be aware of which versions MABS uses to generate the apps. Check them here: https://success.outsystems.com/Support/Release_Notes/Mobile_Apps_Build_Service_Versions


Another thing is that MABS 6.1 does not like the use-frameworks. I recommend you to convert the CocoaPods dependencies to universal libraries. For that I recommend this awesome tool: https://github.com/CocoaPods/Rome


Hope this helps!


Hi Andre,

I am using MABS 6.1 , and you are correct that use-frameworks is not coming in pod file after build generation .


Can you please let me what changes i have to do so that my cordova plugins gets work.

In question i have given link of my cordova plugin .

If you can change and let me what should i do.

It would be a great help .