I have been trying to integrate the Brother's SDK for printing with the iOS part of my Flutter project.
The following are the steps that I followed :
I added the BRLMPrinterKit.framework & BRLMPrinterKitW.framework to the Framework folder in my Xcode project.
Added $(PROJECT_DIR)/Frameworks to the Framework Search Paths and Header Search Paths.
I then added #import <BRLMPrinterKit/BRLMPrinterKit.h> to the Runner-Bridging-Header.h.
After performing the above steps, when I try to import BRLMPrinterKit in the appdelegate file, I am getting a "No such module BRLMPrinterKit" error.
Any Help will be appreciated.
You don't need to add "import BRLMPrinterKit" in your Swift file. So, just delete this line and you should be OK.
Adding #import <BRLMPrinterKit/BRLMPrinterKit.h> as you did to the Bridging Header is sufficient to be able to use SDK APIs in a Swift file.
A few other tips:
Do NOT include both frameworks in your project.
Use BRLMPrinterKitW.framework if you are ONLY supporting WIFI
Use BRLMPrinterKit.framework if you are supporting Bluetooth (and also WIFI)
You must "embed and sign" the framework via the General tab for the target. Otherwise your app will crash as soon as you run it.
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).
Related
I'm having problems when I try to Azure SDK to my swift App, I fallowed this steps:
1. I crated my mobile app on my Azure Portal.
2. I downloaded the Azure SDK for swift.
3. On Xcode I add the SDK to my project.
Here's a capture of my Swift Project Folder
4. On Swift I added a bridging header file to called "MisDispositivos-Bridging-Header.h" with the fallowing code:
#ifndef MisDispositivos_Bridging_Header_h
#define MisDispositivos_Bridging_Header_h
#import <MicrosoftAzureMobile/MicrosoftAzureMobile.h>
#endif /* MisDispositivos_Bridging_Header_h */
5.-Finally I added un the build setting of my project this bridging file on "Swift compiler - General"
Like this:
When I run my iOS app I have the following error on the bridging header file:
'MicrosoftAzureMobile/MicrosoftAzureMobile.h' file not found
I want to know what I'm doing wrong, or if there's another right way to do this, because I'm fallowing this steps from a tutorial
I am trying to integrate payfort SDK to my iOS project.
I am using xcode 9.0 and swift 4.0.
I followed the instruction on payfort docs. But still can't see the module name of payfort in my project.
This is the guide https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.0.pdf
But it showing only PayFortLogo.png when import module. See in below picture.
Payfort guide to integration ios mobile SDK
Please the doc first:
https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_1.3.pdf
1- TO intregrate Payfort SKD follow the following steps. Don't use any other method.
Downloaded iOS SDK from official link.
Unzip the downloaded iOS SDK.
Drag the PayFortSDK.framework & PayFortSDK.bundle to Frameworks in Project Navigator.
o Create a new group Frameworks if it does not exist.
o Choose Create groups for any added folders.
o Make Sure to select Copy files if needed.
2- Copy PayfortView2.xib & PayfortView2_ar.xib from the project view or ask Payfort support team for it, Now use them in your project.
3- Use your custom view for PayfortView by mapping it with PayfortView.h using Payfort framework Connect all outlets with your custom view.
paycontroller?.setPayFortCustomViewNib("PayFortView2")
4- Download "JVFloatLabeledTextField" library from github or use pod for it.
5- Use JVFloatLabeledTextField instead of PFKJVFloatLabeledTextField change PayfortView2.xib and PayfortView2_ar.xib class in "Identify Inspactor" from xcode.
6- Now open "PayFortView.h" from ~/PayFortSDK.framework/Header/PayFortView.h in your project change outlet PFKJVFloatLabeledTextField to JVFloatLabeledTextField
Bellow is the link that I have integrated to my demo project:
Change your payfort account.
https://github.com/bhoopend232/PayfortDemo.git
Just follow these below steps in swift4 and Objective-c we are easily acheive payfort sdk integrate to your projects.It will help full mostly.
.Downloaded iOS SDK from official link.
List item
Unzip the downloaded iOS SDK.
List itemDrag the PayFortSDK.framework & PayFortSDK.bundle to Frameworks in Project Navigator.
Copy PayfortView2.xib & PayfortView2_ar.xib from the project of github to drag into your project.
paycontroller?.setPayFortCustomViewNib("PayFortView2")
Download "JVFloatLabeledTextField" library from github Or use pod for it.
Use JVFloatLabeledTextField in place of PFKJVFloatLabeledTextField change PayfortView2.xib and PayfortView2_ar.xib in "Identify Inspactor" from xcode.
IF we are using sand box account and production account use seperate urls to use
For sandBox:
https://sbpaymentservices.payfort.com/FortAPI/paymentApi
For Production:
https://paymentservices.payfort.com/FortAPI/paymentApi
While check this below pdf file for passing parameters and response
https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.9.pdf
just in the success response we call the xib file .Then it will automatically redirect to card details page.
If you want source code just check this below repository in swift4
https://github.com/SRReddy411/PayFortPaymentDemo
If you want objective c then we will check this one
https://github.com/SRReddy411/payfort-Objective-c
Read the docs properly. Section 4.2, page 10. The framework is written in Objective-C and you have a Swift project, so you need a Bridging-Header.
One of the hundreds of tutorial on how to setup a `Bridging-Header: https://youtu.be/lon5YVMUxHQ
I am trying to add the Facebook SDK to my iOS 9.0 Swift app in Xcode. I did the install according to the FB-dev instructions. However, when I add the header to my AppDelegate.m file import FBSDKCoreKit I keep getting a message saying "No such module 'FBSDKCoreKit'" error .
Based on what I read elsewhere
I have already cleaned the build and re-installed Xcode and updated
my OS X
I have double checked the plist and the framework files FB lists in
the instructions, but nothing has seemed missing.
I have set the "Allow Non-modular Includes in Framework modules"
setting to YES in Build settings.
Nothing seems to work. I do not know where to go from here and have done hours of research trying to find the solution.
When you are importing the frameworks, Make sure you have selected "Copy if needed" . Version after Xcode 6.3 seem to be giving issues if this part is NOT ticked.
I solved this by deleting the Framework and adding it again by right click on the project->Add files..., then choose the framework and SELECT the option to Copy files if needed. It's not what Facebook recommends, but it worked!
I'm using v4.6 of FBSDK and Xcode 7 beta 6.
Hope it helps you and everyone else who's facing the same problem :)
With CocoaPods, swift 2.1, and iOS 9, I tried adding it to the bridge header and it works fine, for example:
#ifndef MY_Bridge_Header_h
#define MY_Bridge_Header_h
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
// ... other imports
#endif /* MY_Bridge_Header_h */
I had errors following alongside the AppCoda tutorial which is not fully up to date. I recommend following Facebooks own instructions. The issue for me was that I had to add the frameworks to my project and then add sdk search path. After that I could import without an error.
I follow all the steps in This Tutorial and/or Facebook SDK Documentation to install Facebook Login on my App, but when I run the code I get an error. although Facebook mention I can just use import (Swift) to include the framework, I try to do it the old fashion as well with Objective-C Bridge Header.
Error:
'FBSDKLoginKit/FBSDKLoginKit.h' file not found
ScreenshotAs you can see the bridge.h is being read by the compiler, but due to internal file error it will throw error.
Bridge.h In Xcode 6 you don't require bridge header file, I could just do it with import
#import <FBSDKLoginKit/FBSDKLoginKit.h>
This problem is due to Xcode 7 Beta, I have tried to do it on Xcode 6 and it worked perfectly with just an import FBSDKLoginKit. Can anyone tell me a hack around this? or if there is a way to convert my Swift 2 code back to 1.4 and work on Xcode 6.
I had the same problem.
Managed to sort the directory by adding the Facebook SDK in "Framework Search Path".
Target -> Build Settings -> Framework Search Paths -> + /Users//Documents/FacebookSDK
it works!
=]
For those using cocoapods the solution for me was actually adding FBSDKCoreKit to podfile:
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
The facebook documentation is incomplete, they dont mention anything about including FBSDKCoreKit pod reference.
For [login,sharekit,corekit].h file not found error , My solution was:
changing framework searchpath of RCTFBSDK (inside library of the project)
~/Documents/FacebookSDK
to
$(HOME)/Documents/FacebookSDK
I have the same issue and recognized, that my old XCode 6 projects worked with the Facebook frameworks.
So i try the following workaround and that fixed the problem. however i don't know why:
Facebook iOS SDK 4.2
Create a fresh project in XCode 6
Link the Facebook Frameworks to your project as described in the docs
Close the project and reopen it in XCode 7
The "To Swift 2 Converter" should open within the project - Convert the project to Swift 2
Run the project - in my case everything works fine.
After that i copied my "old" Swift 2 Files into the new project. The app starts without any issues.
I observed the changes by the converter, but can't recognized any change depending the Facebook frameworks.
Had the same issue, instead of updating the search path
I solved it by removing the Frameworks from the project and then adding them checking the Copy items if needed box
My header files looks this
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
You can simply put ~/Documents/FacebookSDK in Framework Search Paths and it will work for any user
this is a known bug: https://developers.facebook.com/bugs/362995353893156/
Check out this solution: Facebook iOS8 SDK build module error for FBSDKCoreKit
I have installed Google Analytics and Google AdMob SDK in my iOS project using Cocoapods. I have implemented both the functionalities in my app and everything looked okay for a week. Then suddenly, when I compiled the app, I received this error message:
"GADBannerView.h file not found". in "#import GADBannerView.h"
But I was able to see the header GADBannerView.h in my project under Pods target.
I did some research and found this error can happen due to SEARCH PATH in BUILD SETTINGS. Many faced similar issues when they moved the project from one machine to another machine but I didn't do that. So, instead of investigating on SEARCH PATH, I removed my GADBanner implementation from my project and commented line #import GADBannerView.h and my project compiled successfully.
I don't quite understand why the Google Analytics SDK is getting compiled successfully while AdMob is throwing a compilation error. I even did a pod update and still received the same error.
The SEARCH PATHS in my target is $(inherited) and ALWAYS SEARCH USER PATH is set to No
Starting at AdMob 7.0, AdMob has made the SDK a framework. Import it like so:
#import <GoogleMobileAds/GoogleMobileAds.h>
Go to: --> Build Settings --> Apple LLVM 7.1 - Language - Modules --> Enable Modules (C and Objective-C) --> set it to Yes.
According to the Google Ads Developer Blog we need to use:
#import GoogleMobileAds;
If you have a problem with the #import syntax you need to modify your project build settings. Search for Modules and set Enable Modules to YES.
First one is issue of latest SDK will not be used for Admob.
second is issue of Xcode 7.0 and you can try in Xcode xcode below 7 for till date,