zeus
zeus

Reputation: 12975

how to include external library in an iOs app?

In FirebaseCore.framework i have this declaration :

@interface FIRApp : NSObject

+ (void)configure;

@end

I declare in delphi an object like this :

  FIRAppClass = interface(NSObjectClass)
  ['{37BEFC11-8AE6-4312-971D-53BF9D8DB22A}']
    procedure configure; cdecl;
  end;
  FIRApp = interface(NSObject)
  ['{69F89279-48F0-4276-B337-37FE79821507}']
  end;
  TFIRApp = class(TOCGenericImport<FIRAppClass, FIRApp>) end;

Now when i run TFIRApp.OCClass.configure i receive an error "ObjectiveC class FIRApp could not be found"

What I miss ? how to include in my iOS app the FirebaseCore.framework and implement the FIRApp ?

Upvotes: 1

Views: 352

Answers (1)

Dalija Prasnikar
Dalija Prasnikar

Reputation: 28541

"ObjectiveC class FIRApp could not be found"

That error means FIRApp class was not fully linked to your application. In order to do that you need to add -ObjC flag to Project Options -> Delphi Compiler -> Linking -> Options passed to LD linker

enter image description here

Upvotes: 4

Related Questions