2016-08-14 121 views
3

我遵循的步驟從this,因爲我有問題,安裝的CocoaPods,我手動下載了SDK的壓縮,把它添加到項目中,它編譯罰款,但我得到了很多的鏈接錯誤,因爲以下的原因。謝謝你的幫助。GoogleMobileAds的iOS 9鏈接錯誤

Undefined symbols for architecture x86_64: 
"_CBCentralManagerOptionShowPowerAlertKey", referenced from: 
     l942 in GoogleMobileAds(flat-x86_64) "_CVBufferGetAttachment", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_CVOpenGLESTextureCacheCreate", referenced from: 
     l2399 in GoogleMobileAds(flat-x86_64) "_CVOpenGLESTextureCacheCreateTextureFromImage", referenced from: 
     l2400 in GoogleMobileAds(flat-x86_64) "_CVOpenGLESTextureCacheFlush", referenced from: 
     l2398 in GoogleMobileAds(flat-x86_64) "_CVOpenGLESTextureGetName", referenced from: 
     l2400 in GoogleMobileAds(flat-x86_64) "_CVOpenGLESTextureGetTarget", referenced from: 
     l2400 in GoogleMobileAds(flat-x86_64) "_CVPixelBufferGetHeight", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_CVPixelBufferGetWidth", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_GLKMatrix4Identity", referenced from: 
     l2392 in GoogleMobileAds(flat-x86_64) 
     l2402 in GoogleMobileAds(flat-x86_64) "_OBJC_CLASS_$_CBCentralManager", referenced from: 
     objc-class-ref in GoogleMobileAds(flat-x86_64) "_OBJC_CLASS_$_CBUUID", referenced from: 
     objc-class-ref in GoogleMobileAds(flat-x86_64) "_OBJC_CLASS_$_CMMotionManager", referenced from: 
     objc-class-ref in GoogleMobileAds(flat-x86_64) "_OBJC_CLASS_$_EAGLContext", referenced from: 
     objc-class-ref in GoogleMobileAds(flat-x86_64) "_OBJC_CLASS_$_GLKView", referenced from: 
     objc-class-ref in GoogleMobileAds(flat-x86_64) "_OBJC_CLASS_$_SFSafariViewController", referenced from: 
     objc-class-ref in GoogleMobileAds(flat-x86_64) "_glActiveTexture", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glAttachShader", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glBindAttribLocation", referenced from: 
     l2399 in GoogleMobileAds(flat-x86_64) "_glBindTexture", referenced from: 
     l2400 in GoogleMobileAds(flat-x86_64) "_glClear", referenced from: 
     l092 in GoogleMobileAds(flat-x86_64) "_glClearColor", referenced from: 
     l092 in GoogleMobileAds(flat-x86_64) "_glCompileShader", referenced from: 
     l1011 in GoogleMobileAds(flat-x86_64) "_glCreateProgram", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glCreateShader", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glDeleteProgram", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) 
     l2401 in GoogleMobileAds(flat-x86_64) "_glDeleteShader", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glDetachShader", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glDisable", referenced from: 
     l2399 in GoogleMobileAds(flat-x86_64) "_glDrawArrays", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glEnableVertexAttribArray", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glGetProgramiv", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glGetShaderiv", referenced from: 
     l1011 in GoogleMobileAds(flat-x86_64) "_glGetUniformLocation", referenced from: 
     l2399 in GoogleMobileAds(flat-x86_64) "_glLinkProgram", referenced from: 
     _GADGLCreateProgram in GoogleMobileAds(flat-x86_64) "_glShaderSource", referenced from: 
     l1011 in GoogleMobileAds(flat-x86_64) "_glTexParameterf", referenced from: 
     l2400 in GoogleMobileAds(flat-x86_64) "_glTexParameteri", referenced from: 
     l2400 in GoogleMobileAds(flat-x86_64) "_glUniform1f", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glUniform1i", referenced from: 
     l2399 in GoogleMobileAds(flat-x86_64) "_glUniformMatrix3fv", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glUniformMatrix4fv", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glUseProgram", referenced from: 
     l2399 in GoogleMobileAds(flat-x86_64) "_glVertexAttribPointer", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_glViewport", referenced from: 
     l092 in GoogleMobileAds(flat-x86_64) "_kCVImageBufferYCbCrMatrixKey", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_kCVImageBufferYCbCrMatrix_ITU_R_601_4", referenced from: 
     l2397 in GoogleMobileAds(flat-x86_64) "_kCVPixelBufferPixelFormatTypeKey", referenced from: 
     l086 in GoogleMobileAds(flat-x86_64) "_kEAGLColorFormatRGBA8", referenced from: 
     l070 in GoogleMobileAds(flat-x86_64) "_kEAGLDrawablePropertyColorFormat", referenced from: 
     l070 in GoogleMobileAds(flat-x86_64) "_kEAGLDrawablePropertyRetainedBacking", referenced from: 
     l070 in GoogleMobileAds(flat-x86_64) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 
1 (use -v to see invocation) 
+0

檢查問題navagator,點擊你(應該是在底部)鐺錯誤然後張貼在錯誤日誌這裏 –

+0

對不起,粘貼錯誤。我注意到這一行「架構x86_64的未定義符號」,但該項目的架構設置爲arvv7,arm64。它有關係嗎? – sokold

回答

12

我想通了。在項目中增加了一些框架並且工作,但在指南中沒有提及。請參閱截圖。

here is the screenshot of the frameworks

+2

(2017年6月5日)對於Google移動廣告SDK版本7.20.0,需要以下框架。 GLKit CoreTelephony CoreMedia corevideo的 MessageUI CFNetwork的 MobileCoreServices –

0

的GoogleMobileAds SDK(又名的AdMob SDK)有許多依賴關係和它們在後續版本被添加(有時移除)。例如,JavaScriptCore框架是一個從2016年10月17日發佈的版本7.13.0開始的新依賴項。如果再次遇到此問題,請檢查發行說明日誌中框架依賴關係的更新。

+1

你在哪裏看到的依賴關係的列表? – quantumpotato