我最近根据本教程实现了admob(ver 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)
我以前实施过横幅广告和插页式广告,但效果很好。
有什么建议吗?
答案 0 :(得分:1)
该错误告诉您您没有导入所需的标头。您import
标题是GADRewardBasedVideoAd
吗?
#import "GADRewardBasedVideoAd.h"
或者,您可以导入整个AdMob框架。例如:
@import GoogleMobileAds;
Google还在GitHub上提供了完整的GADRewardBasedVideoAd
示例:RewardedVideoExample/ViewController.m
答案 1 :(得分:1)
导入iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8081 # Apparently -A won't work. I have to replace the rule, not add it. But I don't know how to do it yet
,一切正常。
GoogleMobileAds/GADRewardBasedVideoAdDelegate.h