libFlurryAds_6.4.0.a
我已经在我的项目中导入了FlurryAdInterstial.h
和FlurryAdInterstitialDelegate.h
。
然后我添加Security.framework
并SystemConfiguration.framework
在Build Phases > Link with Binary Librarires
然后我添加了这个桥接头,并在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
然后在我的视图控制器viewDidLoad()
中,我添加了以下代码:
adInterstitial = FlurryAdInterstitial(space: "Foo Interstitial") //adInterstitial is a class variable
当我编译时,我收到以下错误:
如果我删除变量,编译成功。我不明白这个错误,因此不确定我能做些什么来解决这个问题!帮助!