Pregunta

I want to implement AdMob functionality in current project. I am getting some issues to implement this technology. Could you please help me on this?

I am integrating AdMob in my iOS application first time. During this process when add AdMob SDK into app , following errors appears.

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)
¿Fue útil?

Solución

Follow Google AdMob guide

You have to import following frameworks -

AdSupport,
AudioToolbox,
AVFoundation,
CoreGraphics,
CoreTelephony,
MessageUI,
StoreKit,
SystemConfiguration

Otros consejos

you have to import all of these frameworks in your app for AdMob integration

1) AudioTollbox.framework,

2) MediaPlayer.framework

3) MessageUI.framework,

4) SystemConfiguration.framework,

5) StoreKit Framework

6) CoreTelephony Framework

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top