What is a correct bridging header for Flurry? - ios

I’m trying to integrate Flurry using CocoaPods in my Swift project. "pod install" downloads Flurry in the project files, but I can’t set a correct path in the bridge-file for FlurrySDK (everything is fine with all other obj-c dependencies).
Where/how can I find a correct import path?

When you are using latest CocoaPod to install external dependencies to Xcode Project, you don't really need the bridging header to expose Objective-C methods to Swift. See below screenshots once to understand it clearly.
Creating and Installing Pods.
Importing Flurry SDK in a Swift class.
Hope this helped. Thanks.

Related

Getting rid of UIWebView in Bolts framework (Parse framework dependecy)

I recently started working with XCode on a project where we are using Parse framework to load data into MongoDB with Heroku.
So I have to release this new app (replica of an existing app with some mods) to App store but I get error email saying UIWebView needs to be replaced with WKWebView.
I searched for the other libraries using UIWebView and could replace them with other ones or a simple pod update worked.
But I am not sure about the Parse.freamework below.
Here is the project structure:
Now I think this is not the Cocoapod implementation. Since, I am fairly new to iOS development, I am not even sure how did these Parse.framework and Bolts.framework come here.
So can someone please help me understand or directly me to documentation that will direct me or help me with some search phrases at least so I can do the hard work of researching.
My questions are:
Why are these Frameworks here in the root folder of project? I don't think this is Pod's doing, is it? How is this implementation of framework done? What is it called?
How can I update the Bolts and/or Parse frameworks to get rid of UIWebView?
Thank you for your help.
So to re-iterate, #Wyetro suggested to install pods anyways. So removed the dependencies (from Frameworks, Libraries, and Embedded Content). Then I installed Parse and it installed Bolts since its dependency through pods. And it all worked perfectly fine!!!
Thank you Wyetro...

PayMill SDK iOS swift 3.0 Xcode 8.1

I'm trying to use PayMill SDK in a Swift project.
I used CocoaPods as described by PayMill, the framework, and it generated 'Pods_PayMilDSK'
After that I tried to import it on my file but I can't get access to any to the functions included in the framework.
I also tried to import the framework directly in my project but I can't access the PayMillSDK framework (i.e. import does not 'see' it).
Any help would be greatly appreciated.
Rodolphe
After running pod install You should always Build your project, cmd + B, because your project still hasn't read the contents of the library you just installed.
Also make sure you're using the .xcworkspace and not the .xcodeproj
I can now make the import of the PAyMill module but functions are not available

GoogleMaps not found

I am trying to use google maps in my ios app my Xcode ver is 7.2 and swift ver is 2.1.1. I simply add GoogleMaps in my pod file everything is fine i added frameworks and libs which are required to support Googlemaps all fine, i am following this tut and according to this i have to add a bridging header file to include
#import <GoogleMaps/GoogleMaps.h>. My app already have one bridging header file because i am using facebook login as well so i put the import statement in the same file and in 'others linker flag -ObjC' is already there so after few required settings in storyboard i compiled my proj but i am getting this error "GoogleMaps/GoogleMaps.h" not found. I have searched for it and tried almost all the suggested ways on Stackoverflow but hard luck nothing worked yet.I will be really grateful if anyone could suggest me what i am doing wrong here.
Make sure your pod install went smoothly.
According to the tutorial,
You should see output similar to the following:
Downloading dependencies
Installing GoogleMaps (1.10.4)
Using SwiftyJSON (2.3.0)
Generating Pods project
Integrating client project
try
#import "GoogleMaps.h"
in your bridging header file

Xcode debugger doesn't display variable information after installing CocoaPods Podfile

I just installed CocoaPods and added a pod to my project in Xcode so that I could use the Google Maps SDK for iOS, and now I'm not able to get types or values for any variables in the debugger console. The only way I can see a variable's value is through a print statement in the code.
I'm using Swift 2.0 in Xcode 7.0 beta, and I followed these instructions almost exactly to install the pod into my project: https://developers.google.com/maps/documentation/ios-sdk/start. The only thing I did differently was to change the second line in the Podspec from "platform :ios, '8.1'" to "platform :ios, '9.0'".
I looked at the answers to this similar question: Xcode debugger sometimes doesn't display variable values?, but I was already using a debug build, and I'm pretty sure my problem is related to CocoaPods, because everything was working fine before I added that to my project.
This is known issue, you can find more info and starred isuue here.
TL-DR - Quick workaround:
Add Objective-C bridging header file and add #import <GoogleMaps/GoogleMaps.h>"
Remove all "import GoogleMaps" from your swift files
PS: Tricky stuff - you have to remove all imports from your swift files - I have forgotten to remove the one and it causes this debug issue.
I hade the same problem dunno if you solved it but, for me this happened because googlemaps was causing too many errors. So the workaround is remove all your googlemaps import in the projekt and add an import to googlemaps in your bridging header instead.
Updating to version 1.10.21020.0 of Google Maps SDK for iOS fixed the problem.

importing PebbleKit in Xcode 6 for use in swift

I'm trying to develop a Pebble companion app in Xcode 6 using swift.
I've followed the instructions so far as could be followed from the pebble development site
Pod seems to install and link PebbleKit without any errors, but when I type the "import PebbleKit" directive in a swift file, it says module not found.
Not being an expert in Objective-C, (nor swift, for that matter) I'm at a loss as to why it isn't working.
Any insights?
For me worked the following solution.
1. I added the PebbleKit manually (all steps for this are described in the link provided by the question)
2. I made a Bridging Header file in the Swift project (check Bridging Headers)
3. In the created Bridging Header file, I wrote: #import
No need of adding 'import PebbleKit' into any Swift file! After I could use all classes from the PebbleKit framework without any problems.

Resources