繁体   English   中英

如何为 Flutter 应用程序将 BRLMPrinterKit 与 iOS 集成?

[英]How to integrate BRLMPrinterKit with iOS for a Flutter App?

我一直在尝试将 Brother 的 SDK 用于打印与我的 Flutter 项目的 iOS 部分集成。

以下是我遵循的步骤:

  • 我将 BRLMPrinterKit.framework 和 BRLMPrinterKitW.framework 添加到了我的 Xcode 项目的 Framework 文件夹中。

  • 在框架搜索路径和 Header 搜索路径中添加了 $(PROJECT_DIR)/Frameworks。

  • 然后我将#import <BRLMPrinterKit/BRLMPrinterKit.h> 添加到Runner-Bridging-Header.h。

执行上述步骤后,当我尝试在 appdelegate 文件中导入 BRLMPrinterKit 时,我收到“没有此类模块 BRLMPrinterKit”错误。

任何帮助将不胜感激。

您无需在 Swift 文件中添加“import BRLMPrinterKit”。 所以,只要删除这一行,你就可以了。

像您对桥接 Header 所做的那样添加#import <BRLMPrinterKit/BRLMPrinterKit.h>足以能够在 ZAE832E9B5BDA2699ZDB45F3FA6AA8C556 文件中使用 SDK API。

其他一些提示:

  1. 不要在你的项目中同时包含这两个框架。
  • 如果您只支持 WIFI,请使用 BRLMPrinterKitW.framework
  • 如果您支持蓝牙(以及 WIFI),请使用 BRLMPrinterKit.framework
  1. 您必须通过目标的“常规”选项卡“嵌入并签署”框架。 否则,您的应用程序将在您运行时立即崩溃。

  2. You may need to add #import <BRLMPrinterKit/BRPtouchPrinterKit.h> to your Bridging Header too, if you need to access any APIs from the older v3 SDK (BRPtouchPrinterKit) that do not have equivalent APIs yet in the v4 SDK (BRLMPrinterKit).

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM