admob的ios接入文件說得極其簡單,只需要加入admob的framework就好了,但一編譯就是一堆錯誤,需要連線一大堆系統framework,還好別人整理了出來,**備查。
首先列出參考文件:admob官方參考鏈結
我是cocos2d-x v3.9的工程,在按照官方文件接入之後,出現一堆編譯錯誤例如:
[plain]view plain
copy
undefined symbols for architecture arm64:
"_objc_class_$_glkview", referenced from:
objc-class-ref in googlemobileads(flat-arm64)
"_cvopenglestexturecachecreatetexturefromimage", referenced from:
l2673 in googlemobileads(flat-arm64)
"_cvopenglestexturegetname", referenced from:
l2673 in googlemobileads(flat-arm64)
"_kuttagclassmimetype", referenced from:
l2987 in googlemobileads(flat-arm64)
"_cvopenglestexturecachecreate", referenced from:
l2672 in googlemobileads(flat-arm64)
"_cvpixelbuffergetheight", referenced from:
l2670 in googlemobileads(flat-arm64)
"_cvopenglestexturecacheflush", referenced from:
l2671 in googlemobileads(flat-arm64)
"_cvbuffergetattachment", referenced from:
l2670 in googlemobileads(flat-arm64)
"_uttypecreatepreferredidentifierfortag", referenced from:
l2987 in googlemobileads(flat-arm64)
"_cvpixelbuffergetwidth", referenced from:
l2670 in googlemobileads(flat-arm64)
"_kcvimagebufferycbcrmatrixkey", referenced from:
l2670 in googlemobileads(flat-arm64)
"_cvopenglestexturegettarget", referenced from:
l2673 in googlemobileads(flat-arm64)
"_kcvpixelbufferpixelformattypekey", referenced from:
l090 in googlemobileads(flat-arm64)
"_kcvimagebufferycbcrmatrix_itu_r_601_4", referenced from:
l2670 in googlemobileads(flat-arm64)
"_glkmatrix4identity", referenced from:
l2664 in googlemobileads(flat-arm64)
l2675 in googlemobileads(flat-arm64)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
請參見這篇文章的對照表,加入相應的系統框架:參考文章
framework名
缺少框架會報的錯
glkit.framework
_objc_class_$_glkview
_glkmatrix4identity
mobilecoreservices.framework
_kuttagclassmimetype
_uttypecreatepreferredidentifierfortag
corevideo.framework
_cvopenglestexturecachecreatetexturefromimage
_cvopenglestexturegetname
_cvopenglestexturecachecreate
_cvopenglestexturecacheflush
_cvpixelbuffergetwidth
_cvopenglestexturegettarget
_kcvpixelbufferpixelformattypekey
_kcvimagebufferycbcrmatrix_itu_r_601_4
_cvpixelbuffergetheight
_cvbuffergetattachment
_kcvimagebufferycbcrmatrixkey
storekit.framework
_objc_class_$_skproductsrequest
_objc_class_$_skmutablepayment
_objc_class_$_skpaymentqueue
_objc_class_$_skstoreproductviewcontroller
_skstoreproductparameteritunesitemidentifier
mediaplayer.framework
_mpmovieplayerplaybackdidfinishnotification
_mpmovieplayerplaybackstatedidchangenotification
_objc_class_$_mpmovieplayercontroller
_objc_class_$_mpvolumeview
safariservices.framework
_objc_class_$_sfsafariviewcontroller
adsupport.framework
_objc_class_$_asidentifiermanager
coremotion.framework
_objc_class_$_cmmotionmanager
coretelephony.framework
_ctradioaccesstechnologydidchangenotification
_objc_class_$_cttelephonynetworkinfo
messageui.framework
_objc_class_$_mfmailcomposeviewcontroller
_objc_class_$_mfmessagecomposeviewcontroller
coretext.framework
_ctframesettercreatewithattributedstring
_ctframesettersuggestframesizewithconstraints
gamekit.framework
_objc_class_$_gkachievement
_objc_class_$_gkscore
_objc_class_$_gkgamecenterviewcontroller
_objc_class_$_gklocalplayer
systemconfiguration.framework
_scnetworkreachabilitycreatewithaddress
_scnetworkreachabilitygetflags
_scnetworkreachabilitycreatewithname
_scnetworkreachabilitysetdispatchqueue
_scnetworkreachabilitysetcallback
security.framework
_seccertificatecreatewithdata
_sectrustcopyexceptions
_sectrustevaluate
_sectrustsetanchorcertificates
_sectrustsetexceptions
coremedia.framework
_cmtimegetseconds
_cmtimemakewithseconds
_cmtimemake
_kcmtimezero
opengles.framework
_objc_class_$_eaglcontext
_glactivetexture
cfnetwork.framework
_cfhostcreatewithname
_cfhoststartinforesolution
_cfhostgetaddressing
一般國外的sdk文件都乙個尿性,文件及其簡單。
在接入admob插屏廣告的時候,我就遇到上面的一類問題,然後就ok了
AdMob接入踩坑記
首先列出參考文件 admob官方參考鏈結 我是cocos2d x v3.9的工程,在按照官方文件接入之後,出現一堆編譯錯誤例如 plain view plain copy undefined symbols for architecture arm64 objc class glkview refe...
AdMob廣告平台
首先申請個賬號 我用的gmail郵箱賬號 這裡,底部可以選擇語言,然後在程式裡使用之前還要在站點新增一些資訊 日後還可修改 然後是收款相關資訊,注意這裡全都用英文填寫,收款銀行賬戶要支援雙貨幣,兩種支付方式,用電匯吧,另乙個手續費高。開始建立應用程式,包括廣告樣式,重新整理頻率等資訊,成功建立後有乙...
9 接入類流程 接入問題分析
失敗的流程與正常的流程作對比,看缺失什麼信令。鑑權以後,是e rab建立。信令1,2是preamble碼,物理層的,指標與信令看不見 信令的3,4就是rrc請求和成功的次數 鑑權加密 請求和成功次數 e rab 請求和成功次數 無線接通率指標的定義就出來了。找出rrc,鑑權和e rab對應的top小...