-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Third Party iOS SDKs in Kastri ( Delphi 12.2 ) #247
Comments
I'm working on it.. deciding what to do about supporting both 12.2 and earlier versions, because using the newer Firebase iOS SDK (for example) with iOS 18 SDK (at least) requires additional frameworks to be linked (and also imported via SDK Manager in Delphi). This is a proposed change to the implementation section of implementation
uses
// iOS
iOSapi.StoreKit,
// DW
DW.iOSapi.SwiftCompat;
const
libSystemConfiguration = '/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration';
procedure CLangRTLoader; cdecl;
{$IF not Defined(IOSSIMULATOR)}
external '/usr/lib/clang/lib/darwin/libclang_rt.ios.a'; // Fixes linker error: ___isOSVersionAtLeast missing (iOS SDK 12.x)
{$ELSE}
external '/usr/lib/clang/lib/darwin/libclang_rt.iossim.a'; // Fixes linker error: ___isOSVersionAtLeast missing (iOS SDK 12.x)
{$ENDIF}
procedure FBLPromisesLoader; cdecl; external framework 'FBLPromises';
procedure FirebaseAnalyticsLoader; cdecl; external framework 'FirebaseAnalytics';
procedure FirebaseCoreLoader; cdecl; external framework 'FirebaseCore';
procedure FirebaseCoreInternalLoader; cdecl; external framework 'FirebaseCoreInternal';
procedure FirebaseInstallationsLoader cdecl; external framework 'FirebaseInstallations';
procedure FoundationLoader; cdecl; external libFoundation;
procedure GoogleAppMeasurementLoader; cdecl; external framework 'GoogleAppMeasurement' dependency 'sqlite3';
procedure GoogleUtilitiesLoader; cdecl; external framework 'GoogleUtilities';
procedure nanoPBLoader; cdecl; external framework 'nanoPB';
procedure SystemConfigurationLoader; cdecl; external libSystemConfiguration;
procedure StoreKitLoader; cdecl; external libStoreKit;
// Proposed change:
{$IF not Defined(PREIOS18SDK)}
procedure SwiftUILoader; cdecl; external '/System/Library/Frameworks/SwiftUI.framework/SwiftUI';
{$ENDIF} i.e., it will mean that those using Delphi 12.1 or earlier will need to add the conditional define |
i'm using MLKitBarcodeScanning. Thank you |
I updated the Barcode Scanning support a few days ago so that it should support either Firebase iOS SDK 10.8 or 11.2. Note that if you are including Firebase Cloud Messaging, you will have to use v10.8 - it's a Google limitation, unfortunately. |
Hi @DelphiWorlds , Delphi 12.2 is out now.
"Does not support linking with library compiled with XCode 14" should to is fixed.
Link:
https://delphiworlds.com/2024/02/ongoing-support-for-third-party-ios-sdks-in-kastri/
Are there any news for use Third Party iOS SDKs in Kastri ?
Mauro
The text was updated successfully, but these errors were encountered: