Kastri icon indicating copy to clipboard operation
Kastri copied to clipboard

[FCMRebooted] + [BarcodeReader]: File not found: PromisesObjC

Open valberhcustodio opened this issue 1 year ago • 3 comments

Description I combined the requirements of the FCMBaseDemo12 and BarcodeReaderD12 projects into a single project. When compiling the project on the iOS Device 64-bit platform, I get the error bellow:

Error messages [DCC Error] E2597 ld: file not found: PromisesObjC

Please indicate Delphi Version: 12.2 Platform(s) that the issue occurs on (i.e. iOS, Android etc): iOS with SDK 18.0

  • I'm using Firebase iOS SDK 11.2.0
  • I added a conditional define of FIREBASE in the Delphi Compiler section of the Project Options.

valberhcustodio avatar Sep 21 '24 15:09 valberhcustodio

Making these two pieces of functionality work together is proving to be a real pain. I am looking into it..

DelphiWorlds avatar Sep 22 '24 01:09 DelphiWorlds

I have discovered that:

  • Using GoogleMLKit BarcodeScanner on its own with Firebase iOS SDK 11.2.0 works
  • Using GoogleMLKit BarcodeScanner with Firebase Cloud Messaging with Firebase iOS SDK 11.2.0 is not possible due to a mismatch between the GoogleUtilities libraries
  • Using GoogleMLKit BarcodeScanner with Firebase Cloud Messaging with Firebase iOS SDK 10.8.0 still works

The latter means that at least for now, developers combining the two are stuck with v10.x of Firebase iOS SDK. Somewhere on or before v10.28.0 the two diverge and Google appears disinterested in resolving this.

DelphiWorlds avatar Sep 22 '24 03:09 DelphiWorlds

I've updated the Barcode Reader demo, including the readme, to distinguish between using Barcode Scanning "standalone" and combining it with FCM. It also has updated instructions regarding Project Options, so please read the readme.

I've also updated the ML Kit binaries (in the ThirdParty\iOS folder) to the latest available, which as described in my last comment, can be used only with earlier versions of the Firebase iOS SDK.

DelphiWorlds avatar Sep 22 '24 20:09 DelphiWorlds