I'm trying to add the AWS SDK to my xcode project that is written in swift.
I followed these steps: http://mobile.awsblog.com/post/Tx2AA7ZHB1FK0G1/Version-2-of-the-AWS-SDK-for-iOS-Developer-Preview to create a Bridge-Header file, and add the SDK itself to my project.
The problem is that when I try to build the app I get an error now... the Bridge Header cannot be imported because one of the files in the AWS SDK (AWSModel.h) has an error. This file tries to import Mantle/Mantle.h, and the error reads "Mantle/Mantle.h file not found"
do I need to add this file to my project as well? If so, how would I go about doing that? The only frameworks I'm using are Facebook SDK, and I would like to add AWS as well.
There is a working sample app on GitHub. You should follow README and see if you can compile the app. It should help you understand how to set up the project.
Related
I'm trying to integrate IronSource SDK in a iOS Flutter project (Swift project), but I am unable to do that. According to the IronSource documentation, I must point to IronSource.h file to include the bridge I need. And I am able to implement it in normal Xcode swift project, but I am unable to do that in flutter project since this bridge is already used by the flutter and it can be only one file.
So the question is: How can I integrate another ObjC library (IronSource) in the existing flutter ios project?
I am new to iOS development and Im battleing this for about a week now. I cant find anything on the internet that would work so any help will be much appreciated. Thanks
I managed to resolve my issue. It turns out that build paths are not case sensitive and I was using 'ironsource' for my plugin name but IronSourceSDK is using 'IronSource' so it looks like at build time it did not find the correct files.
And when this was working, I had to add 'use_frameworks! :linkage => :static' in the pod file of the plugin.
Then I could depend on it in my swift flutter app normally as any other plugin.
I've stuck with a Flurry: I add Flurry (Analytics only) to my swift project according this guide:
https://developer.yahoo.com/flurry/docs/integrateflurry/ios-manual/
After all steps done it throws error:
Has anyone encountered a similar one?
It's look like library not found.
Check Link Library With Libraries on Build Phases in Xcode.
Read documentation about Import Flurry Libraries:
https://developer.yahoo.com/flurry/docs/integrateflurry/ios-manual/?guccounter=1#import-flurry-libraries
I integrated Flurry it works perfectly. You are making mistake here,you are opening project using this projectname.xcodeproj rather than this file projectname.xcworkspace . After install pod you must open project using this projectname.xcworkspace
For your reference i updated sample project please take a look if you could not get it. Sample Project
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 integrating the Mapbox iOS SDK using pod. I am following the instruction to integrate the SDK from its developer site.
But the problem is after installing the pod While tryingt to build, I can see the error as
Only factory methods can have the 'swift_name' attribute
And I am not able to import the header file Mapbox.h
I have also downloaded the demo project provided in the Github, but that was also giving same error.
For now I have commented the methods those are throwing error and now my project runs successfully. But that is not the solution. So hope some one can put some light so as to resolve the issue.
NB : My Xcode version is 7.1 and language is Objective C.
I am trying to integrate MOLPay online payment gateway through its SDK.
When I import the MOLPay Library to AppDelegate.m and ViewController.m I get an error saying:
'molpaylibrary/molpaylib.h' file not found.
Can anyone help?
I downloaded the MOLPay framework and integrated into a Xcode project. There is no problem reaching the header file.
see here:
git clone https://github.com/andersc/MOLPay.git
Use that project and you should have no problem integrating MOLPay.
/A