MLKit Barcode Scanner causing the app to not build/run on simulator

Hi Team,

We recently upgraded our project to HCL Voltmx 9.2. we are using barcodesanner in our project and we need to upgrade it to NFI 3.0. We got the upgraded version in marketplace MLKITBarcodescanner.1.0.0 version for free form but for this we are facing the same issue FBLPromise architecture is not supporting in simulator version. Kony team suggested to use the updated MLKITBarcodescanner.2.0.0 version but the issue of FBLPromise architecture not supporting in simulator version persists.

Can you please provide the solution for this issue as we need to run the app on the simulator and currently it is not possible or an alternative to run the application in simulator with MLKit component.

Please find the link below for the MLKit Barcode Scanner below -

https://marketplace.hclvoltmx.com/items/mlkit-barcodeqr-scanner

Thanks,

Divyansha

Hi Divyansha,

You are looking for a simulator run. But please understand, this type of application where scanner/scanning involved, will only run in real devices as we need to open the camera and scan. This type of component will only work on native devices. Please give a try and let me know.

Thanks,
Gaurab

Hi @Gaurab Banerjee ,

Yes we do know that the scanner will not work on a simulator run but the app itself is crashing due to a FBLPromise architecture is not supporting in simulator version error. We bypass the scanner screen whilst running on a simulator but we need the other sections of the app to work which in this case is not happening.

Hence we need a solution for this issue as we need to run the app on the simulator or an alternative to run the application in simulator with MLKit component.

Thanks,

Divyansha

Hi Divyansha,

Which Xcode version you are using?

Thanks,
Gaurab

HI @Gaurab Banerjee

FYI,
Xcode version is 15.2 version
HCL Volt Iris version is 9.2.70 version.

Regards,
Harish Kumar

Hi Divyansha,

To test the app in simulator, we need to disable NFI responsible for MLKitBarcode as FBLPromise architecture is not supporting.
To do so, (in Iris) go to Edit -> Manage Native Function API(s) - > Disable the MLKitBarcode NFI.

Now, you build and test your application for simulator.

Thanks,
Gaurab

Thanks for answering, you made my day.