Integration issues with Flurry Ads when using cocoapds

I use Cocoapods to integrate Flurry Ads in my project according to the instructions of the Flurry Developer Documentation .

I have a podfile as below:

platform :ios, '9.0' use_frameworks! target 'Foo' do pod 'Flurry-iOS-SDK/FlurrySDK' pod 'Flurry-iOS-SDK/FlurryAds' end 

I'm not using the Bridging Header header, since in Cocoapods 0.39 we can use use_frameworks! to avoid the header of the bridge. I set " Build Active Architecture " to Yes for debugging and No for release .

This is the error I get: _OBJC_CLASS_$_FlurryXXXXXX referenced from FooViewController , linker command failed with exit code 1

enter image description here

+7
ios9 cocoapods flurry
source share
2 answers

As stated in the github release https://github.com/flurry/Flurry-iOS-SDK/issues/18 and in this answer SO: Using the unauthorized identifier "FlurryAdInterstitial" : you need to specify the -all_load-linker flag in the Flurry-iOS- package SDK / FlurryAds podspec. Here is a working patch (I hope it will soon be integrated into the official specification, or they will be solved in other ways):

 pod 'Flurry-iOS-SDK', :git => " git@github.com :justadreamer/Flurry-iOS-SDK.git" 

Hope this saves you some time.

0
source share

I integrate Flurry from Scratch using CocoaPods settings. You must add some libraries and frameworks that require the application to run successfully.

Attach the following Frames and libraries as indicated in the Images:

 libz.1.1.3.tbd libz.1.2.5.tbd libz.1.tbd libz.tbd SystemConfiguration.ramework MediaPlayer.framework AdSupport.framework libFlurry_7.3.0.a libFlurryAds_7.3.0.a Security.framework Flurry_iOS_SDK.framework Pods_ProjectName.framework 

Add this line to AppDelegate.swift

 // AppDelegate.swift import Flurry_iOS_SDK func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. Flurry.startSession("YOUR_API_KEY"); return true } 

enter image description here

enter image description here

-one
source share

All Articles