FBAudience网络作为框架集成 [英] FBAudience Network as a Framework Integration
问题描述
我正在整合Facebook受众群体网络,以获取插页式广告和奖励广告.
I'm Integrating Facebook Audience Network for Interstitial and Rewarded types of Ads.
我正在尝试将其集成为框架,而不是集成到项目中.
I'm trying to integrate it as a framework and not in the project.
当我尝试通过测试用例对其进行测试时,此行之后失败:
When I'm trying to test it through the Test Cases It failing after this line:
self.fbInterstitialAd = [[FBInterstitialAd alloc] initWithPlacementID:self.placementID];
并给我这个错误:
***由于未捕获的异常'FBFinalClassViolationException'而终止应用程序,原因:'FBAdConfigManager是最终类,不能被子类化.FBAdConfigManager'***
我真的不明白为什么它崩溃了.我真的找不到问题所在.我还将这个受众网络SDK集成到了单独的单视图应用程序中,在那里我可以看到广告并且运行正常.
I really do not understand why it is crashing. I am really not able to find what is the issue. I also integrated this Audience network SDK in separate single view Application, there I'm able to see the ADs and working fine.
推荐答案
感谢@sudekon,我也能够解决此问题.这是唯一对我有用的解决方案.
Thanks to @sudekon I was also able to fix the problem. This is the only solution which has worked for me.
除了sudekon所说的那样,对于Unity开发人员,您还可以点击Assets->播放服务解析器(或外部依赖性管理器)->iOS解析器->设置并选中静态链接框架"复选框.然后构建Xcode项目.这将按照建议的指示准备Podfile.
In addition to what sudekon says, for Unity developers, you can click Assets -> Play Services Resolver (or External Dependency Manager) -> iOS Resolver -> Settings and check the checkbox that says "Link frameworks statically" and then build Xcode project. This will prepare the Podfile with the suggested instructions.
这篇关于FBAudience网络作为框架集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!