首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GoogleMobileAds iOS 9链接错误

GoogleMobileAds iOS 9链接错误
EN

Stack Overflow用户
提问于 2016-08-14 21:05:44
回答 4查看 7.3K关注 0票数 3

我遵循了this的步骤,因为我在安装cocoapods时遇到了问题,我手动下载了SDK压缩包,将其添加到项目中,它编译得很好,但我收到了很多链接错误,如下所示。谢谢你的帮助。

代码语言:javascript
复制
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)
EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2016-08-17 12:46:39

我想通了。向项目中添加了一些框架,并且它起作用了,但是指南中没有提到它。参考屏幕截图。

票数 16
EN

Stack Overflow用户

发布于 2016-11-17 06:50:38

GoogleMobileAds软件开发工具包(又称AdMob软件开发工具包)有许多依赖项,并且在后续版本中不断添加(有时还会删除)这些依赖项。例如,JavaScriptCore框架是从2016-10-17发布的7.13.0版本开始的新依赖。如果您再次遇到此问题,请在发行说明日志中检查框架依赖项的更新。

票数 1
EN

Stack Overflow用户

发布于 2019-02-10 16:42:06

还必须添加security.Framework ...

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38942524

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档