aliokan / cordova-plugin-admob

AdMob Phonegap Plugin for Android and iOS
MIT License
71 stars 43 forks source link

Undefined symbols for architecture arm64: #16

Open ghost opened 10 years ago

ghost commented 10 years ago

I'm getting the following error on archive, I believe the AdMob SDK may need to be upgraded in the plugin.

Undefined symbols for architecture arm64: "_OBJCCLASS$_GADAdMobExtras", referenced from: objc-class-ref in AdMobPlugin.o "_kGADAdSizeFullBanner", referenced from: -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o "_OBJCCLASS$_GADRequest", referenced from: objc-class-ref in AdMobPlugin.o "_OBJCCLASS$_GADInterstitial", referenced from: objc-class-ref in AdMobPlugin.o "_OBJCCLASS$_GADBannerView", referenced from: objc-class-ref in AdMobPlugin.o "_kGADAdSizeSmartBannerLandscape", referenced from: -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o -[AdMobPlugin resizeViews] in AdMobPlugin.o "_kGADAdSizeLeaderboard", referenced from: -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o "_kGADAdSizeBanner", referenced from: -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o "_kGADAdSizeInvalid", referenced from: -[AdMobPlugin createBannerView:] in AdMobPlugin.o -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o "_kGADAdSizeSmartBannerPortrait", referenced from: -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o -[AdMobPlugin resizeViews] in AdMobPlugin.o "_kGADAdSizeMediumRectangle", referenced from: -[AdMobPlugin GADAdSizeFromString:] in AdMobPlugin.o "_GADAdSizeEqualToSize", referenced from: -[AdMobPlugin createBannerView:] in AdMobPlugin.o -[AdMobPlugin resizeViews] in AdMobPlugin.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

ghost commented 10 years ago

Ok solved this problem. It was a case of not having the proper frameworks added to the project. I fixed this by adding the following frameworks:

AdSupport
AudioToolbox
AVFoundation
CoreData
CoreGraphics
CoreTelephony
MessageUI
StoreKit
SystemConfiguration
ghost commented 10 years ago

Opps Scratch that an update was also necessary the new AdMob SDk needs to be added to this repo

Shahbaz-Akram commented 7 years ago

add but same error yet