簡體   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