Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
valberhcustodio opened this issue Sep 21, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@valberhcustodio
Copy link

valberhcustodio commented Sep 21, 2024

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.
@DelphiWorlds DelphiWorlds self-assigned this Sep 21, 2024
@DelphiWorlds DelphiWorlds added the bug Something isn't working label Sep 22, 2024
@DelphiWorlds
Copy link
Owner

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

@DelphiWorlds
Copy link
Owner

DelphiWorlds commented Sep 22, 2024

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants