ios - 如何在iOs应用程序中包含外部库?

标签 ios delphi

FirebaseCore.framework中,我有以下声明:

@interface FIRApp : NSObject

+ (void)configure;

@end

我在delphi中声明了这样的对象:
  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;

现在,当我运行TFIRApp.OCClass.configure时,我收到一个错误“ ObjectiveC类FIRApp找不到

我想念什么?如何在我的iOS应用程序中包含FirebaseCore.framework并实现FIRApp?

最佳答案

“找不到ObjectiveC类FIRApp”

该错误意味着FIRApp类未完全链接到您的应用程序。为此,您需要将-ObjC标志添加到项目选项-> Delphi编译器->链接->传递给LD链接器的选项

enter image description here

关于ios - 如何在iOs应用程序中包含外部库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49717527/

相关文章:

ios - 如何将 Magicalvoxel 文件导入 Xcode 并使用它

ios - 轨道 API : Authenticate users from native mobile apps using username/password or facebook token

delphi - 转到光标所在功能的热键 - Delphi

delphi - 在 Delphi XE2 中使用 PayPal REST 客户端

ios - ARC (iOS) 下的 Delphi TThread 未发布

ios - UITest 在 Framework 中不起作用

ios - cocoa touch 中多个 NSNotifcationCenter 实例的缺点

ios - 向 UITableView 单元格添加左缩进

delphi - 网络浏览器上的插入符位置

德尔福 : How to use Format() with runtime-built array of TVarRec?