Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import framework into XCode project?

I get No such module 'BRLMPrinterKit' error.

I take a reference from official document https://support.brother.com/g/s/es/htmldoc/mobilesdk/guide/getting-started/getting-started-ios.html to import framework.

Here is my step:

  1. drag BRLMPrinterKit.framework and BRLMPrinterKitW.framework into my framework folder enter image description here

  2. Check they are in Link Binary With Libraries (remove and drag again) enter image description here

  3. Check Framework Search Paths (I'm not sure it correct or not) enter image description here

  4. Check Header Search Paths (I'm not sure it correct or not) enter image description here

Finally I clean and build get No such module 'BRLMPrinterKit' error.

I have no idea how to fix my import problem, any help would be appreciated. Thanks.

like image 715
Morton Avatar asked Sep 10 '25 14:09

Morton


2 Answers

That's not a Swift module, so first, you need to create a bridging header, in which you import <BRLMPrinterKit/BRLMPrinterKit.h>, then you can use the BRLM classes in your Swift files.

like image 52
BoygeniusDexter Avatar answered Sep 12 '25 04:09

BoygeniusDexter


Try using CocoaPods to install the framework, it's more convenient and faster. Your framework supports installation using cocoapods

https://cocoapods.org/

https://github.com/jonathantribouharet/BRLMPrinterKit

like image 43
Leon Jakonda Avatar answered Sep 12 '25 02:09

Leon Jakonda