DelphiWorlds / Kastri

Cross-platform library for Delphi
MIT License
499 stars 119 forks source link

file not found GTMSessionFetcher #262

Closed Gebhard-AddIn closed 1 day ago

Gebhard-AddIn commented 2 days ago

I am using the current Delphi version 12.2 with update 1. This linker error is displayed when compiling for iOS: [DCC Error] E2597 ld: file not found: GTMSessionFetcher [DCC Fatal error] F2588 Linker error code: 1 ($00000001) Do you have any advice on what to do here? The file libGTMSessionFetcher.a is located in the directory \Documents\GitHub\Kastri\ThirdParty\iOS. Everything looks correct. The zip files for Firebase.6.18.0 and for the MLKitBarcodeScanning.framework are unpacked.

DelphiWorlds commented 2 days ago

Are you compiling your own project or a demo? If a demo, I assume that it's the Barcode Reader demo? If your own project, please show what values you have for Framework search path and Search path in the project options.

Gebhard-AddIn commented 1 day ago

Its my own project.

Framework path: C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty; C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty\iOS; C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty\Firebase\iOS\Firebase.6.18.0\FirebaseAnalytics; C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty\Firebase\iOS\Firebase.6.18.0\FirebaseMessaging

SearchPath: C:\Users\gebhard.blank\Documents\GitHub\Kastri\Features\Barcode; C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty\iOS\MLKitCommon.framework; C:\Users\gebhard.blank\Documents\GitHub\Kastri\API; C:\Users\gebhard.blank\Documents\GitHub\Kastri\Core; C:\Users\gebhard.blank\Documents\GitHub\Kastri\Include; C:\Users\gebhard.blank\Documents\GitHub\Kastri\Features\FilesSelector; C:\Users\gebhard.blank\Documents\GitHub\Kastri\Features\ShareItems; C:\Users\gebhard.blank\Documents\GitHub\Kastri\Features\Firebase; \filedeveloper\Entwicklung\Entwicklung\Rad Studio XE12\Forschung\PocketReadBlueListe; $(TMSREG)\TMS FNC UI Pack; $(TMSREG)\TMS FNC Core; $(TMSREG)\TMS Cryptography Pack; $(TMSREG)\TMS Cryptography Pack\libiOSDevice64; \filedeveloper\Entwicklung\Entwicklung\Rad Studio XE12\Forschung\PackageKalenderD12; \filedeveloper\Entwicklung\Entwicklung\Rad Studio XE12\Forschung\FGX-FireMonkey-master\Library; \filedeveloper\Entwicklung\Entwicklung\Rad Studio XE12\Forschung\FMX-ImageLayout-master; \filedeveloper\Entwicklung\Entwicklung\Rad Studio XE12\Forschung\PRBarCodeScanner; \filedeveloper\Entwicklung\Entwicklung\Rad Studio XE12\Forschung\TMSFMXZBarReader

DelphiWorlds commented 1 day ago

C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty\iOS\MLKitCommon.framework;

This does not need to be in the project search path, but it is missing: C:\Users\gebhard.blank\Documents\GitHub\Kastri\ThirdParty\iOS

Gebhard-AddIn commented 1 day ago

Thank you Dave for the quick reply. Unfortunately, the error message still appears.

DelphiWorlds commented 1 day ago

Can you attach the .dproj file of the project here? You may need to zip file file in order to add it as an attachment.

Gebhard-AddIn commented 1 day ago

I compared my project with your barcode demo. I was missing the Firebase iOS SDK 11.2.0. I'm just finishing setting it up. Hope it works after that. I will let you know then.

Gebhard-AddIn commented 1 day ago

Now I get this error: [DCC Error] ld: file not found: /usr/lib/swift/libswift_Concurrency.dylib [DCC Fatal error] Linker error code: 1 ($00000001)

The same Error on your BarcodeDemo. Do I have to add anything on the Mac side or XCode?

Attached the dproj file. pocketBLUE.zip

DelphiWorlds commented 1 day ago

I missed some importation information in the Readme regarding Swift Compatibility libraries, which I have now added.

Gebhard-AddIn commented 1 day ago

Thank you. its compiling now!