문제

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)
도움이 되었습니까?

해결책

Follow Google AdMob guide

You have to import following frameworks -

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top