swift - Flurry 广告导致链接器错误

标签 swift flurry xcode6.3 ios8.3

我已将 libFlurryAds_6.4.0.a 以及 FlurryAdInterstial.hFlurryAdInterstitialDelegate.h 导入到我的项目中。

然后我在构建阶段下添加了Security.frameworkSystemConfiguration.framework>与二进制库的链接

然后我添加了这个桥接 header ,并将其添加到项目build设置> Swift 编译器 - 代码生成> Objective-C 桥接 header > 调试发布值:

#ifndef Foo_Bridging_Header_h
#define Foo_Bridging_Header_h
#import "FlurryAdInterstitial.h"
#import "FlurryAdInterstitialDelegate.h"
#endif 

然后在我的 View Controller viewDidLoad()中,我添加了以下代码:

    adInterstitial = FlurryAdInterstitial(space: "Foo Interstitial") //adInterstitial is a class variable

编译时出现以下错误:

enter image description here

如果我删除该变量,则编译成功。我不明白这个错误,因此不知道我能做些什么来解决这个问题!救命!

最佳答案

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

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

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

关于swift - Flurry 广告导致链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30251803/

相关文章:

ios - Xcode 6.3 - 自动属性合成不会合成属性

swift - 快速覆盖 setter

swift - AWS Cognito Swift 凭证提供商 "logins is deprecated: Use AWSIdentityProviderManager"

ios - 如何使用 Swift 将 UIImage 作为 swift3 中的 'source=' 参数上传到 REST API?

android - 如何计算 flurry 移动应用用户的平均 "kill score"

xcode - 如何减少 Storyboard的编译时间?

ios - 谷歌地图 iOS myLocation

android - 如何使用 Fiddler 通过 Android 模拟器跟踪 https url?

javascript - Firefox OS 特权应用程序上的 Flurry 分析

Xcode 6.3 测试版不支持 iOS 8.2