GADRewardBasedVideoAdDelegate

GADRewardBasedVideoAdDelegate

我最近根据此教程实现了admob(7.9.1版)奖励视频:
https://firebase.google.com/docs/admob/ios/rewarded-video

但是我无法使用此功能编译我的应用程序。
我收到此错误:

Undefined symbols for architecture x86_64:
  "l_OBJC_PROTOCOL_$_GADRewardBasedVideoAdDelegate", referenced from:
      l_OBJC_CLASS_PROTOCOLS_$_ViewController in libFramework.a(ViewController.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see     invocation)

之前,我实施了横幅广告和插页式广告,并且效果很好。

有什么建议么?

最佳答案

导入GoogleMobileAds/GADRewardBasedVideoAdDelegate.h,一切正常。

#import <GoogleMobileAds/GADRewardBasedVideoAdDelegate.h>

关于ios - Admob奖励视频GADRewardBasedVideoAdDelegate undefined symbol ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38835459/

10-09 02:40