0

libFlurryAds_6.4.0.a我已经在我的项目中导入了FlurryAdInterstial.hFlurryAdInterstitialDelegate.h

然后我添加Security.frameworkSystemConfiguration.frameworkBuild 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

当我编译时,我收到以下错误:

在此处输入图像描述

如果我删除变量,编译成功。我不明白这个错误,因此不确定我能做些什么来解决这个问题!帮助!

4

1 回答 1

1

除了 Flurry Analytics SDK 所需的框架之外,FlurryAds SDK 还需要一些额外的框架。

就您而言,听起来您缺少 AdSupport.framework。

有关所需框架的完整列表,请查看以下站点:https ://developer.yahoo.com/flurry/docs/publisher/code/ios/

于 2015-05-18T17:52:43.977 回答