18
Views
2
Comments
Solved
[Key Store Plugin] Build Error with MABS 10
Question
key-store-plugin
Mobile icon
Forge component by Hector Gordin
Application Type
Mobile

Hi Team, 


After testing the new MABS version 10, the build seems to be failing due to the 'cordova-plugin-secure-storage'. Any idea why?


We have the latest version of KeyStore 2.3.2  as recommended in the release notes. 


I've attached the build logs for iOS to help diagnose the issue.


iOSBuildLog (5).zip
Solution

Hey Giuliano,

Had a look into the issue and the cause appears to be related to the `cordova-plugin-add-swift-support` dependency introduced by a non-supported plugin named "MoSdk".  The version injected is different to the one that the KeyStore and Camera plugins expect.

You could try the following fix: 

On the "MoSdk" plugin, exchange 

<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>

with

<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>

and check if the error still occurs.

Just one final note: on "MoSdk", the dependency is being injected into the whole plugin. Since Swift is iOS only, you should move the dependency inside the iOS platform.

Hi Ricardo, 

Thanks for helping diagnose the source of the issue. Your recommendation has actually fixed the issue and we can now build it successfully.

Regards,

Giuliano

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