我想在当前项目中实现AdMob功能。我遇到了一些实施这项技术的问题。你能帮帮我吗?
我第一次在我的iOS应用程序中集成了AdMob。在此过程中,将AdMob SDK添加到应用程序时,会出现以下错误。
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString(inlove) in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:2)
您必须导入以下框架 -
AdSupport,
AudioToolbox,
AVFoundation,
CoreGraphics,
CoreTelephony,
MessageUI,
StoreKit,
SystemConfiguration
答案 1 :(得分:0)
您必须在应用中导入所有这些框架以进行AdMob集成
1)AudioTollbox.framework,
2)MediaPlayer.framework
3)MessageUI.framework,
4)SystemConfiguration.framework,
5)StoreKit Framework
6)CoreTelephony框架