I have imported libFlurryAds_6.4.0.a
in my project along with FlurryAdInterstial.h
and FlurryAdInterstitialDelegate.h
.
Then I added Security.framework
and SystemConfiguration.framework
under Build Phases > Link with Binary Librarires
Then I added this bridging header, and added it under Project Build Settings > Swift Compiler - Code Generation > Objective-C Bridging Header > debug and release values:
#ifndef Foo_Bridging_Header_h
#define Foo_Bridging_Header_h
#import "FlurryAdInterstitial.h"
#import "FlurryAdInterstitialDelegate.h"
#endif
Then in my view controller viewDidLoad()
, I added this code:
adInterstitial = FlurryAdInterstitial(space: "Foo Interstitial") //adInterstitial is a class variable
When I compile, I get the following errors:
if I remove the variable, the compile is successful. I don't understand the error and hence am not sure what I can do to resolve of this! Help!