Admob 更新后。放到工程里會報錯。錯誤如下:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in libGoogleAdMobAds.a(GADIdentifierUtilities.o) "_OBJC_CLASS_$_SKStoreProductViewController", referenced from: objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SKStoreProductParameterITunesItemIdentifier", referenced from: -[GADOpener openInAppStore:fallbackURLString:] 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)
這個原因可能是有些Frameworks沒有添加進去。可以試試添加 StoreKit.framework 與 AdSupport.framework
我這邊加了這兩個后就沒有問題了。 AudioToolbox.framework SystemConfiguration.framework MessageUI.framework