ios - 尝试使用 Admob 构建应用程序时出现架构 x86_64 错误的 undefined symbol

标签 ios xcode admob

我刚刚将 google admob 集成到我的 iOS 应用程序中。当我编译时,出现以下错误:

    Undefined symbols for architecture x86_64:
  "_CACurrentMediaTime", referenced from:
      l858 in GoogleMobileAds(flat-x86_64)
  "_CVBufferGetAttachment", referenced from:
      l2558 in GoogleMobileAds(flat-x86_64)
  "_CVOpenGLESTextureCacheCreate", referenced from:
      l2560 in GoogleMobileAds(flat-x86_64)
  "_CVOpenGLESTextureCacheCreateTextureFromImage", referenced from:
      l2561 in GoogleMobileAds(flat-x86_64)
  "_CVOpenGLESTextureCacheFlush", referenced from:
      l2559 in GoogleMobileAds(flat-x86_64)
  "_CVOpenGLESTextureGetName", referenced from:
      l2561 in GoogleMobileAds(flat-x86_64)

类似的错误还有很多。我将 admob 与 firebase 分开安装,因为我不想使用 firebase,只想使用 admob。我怎样才能解决这个问题?

最佳答案

将来,您可以随时通过 Google 搜索其所指的 undefined symbol 来找出您缺少的框架。在这种情况下谷歌CACurrentMediaTime ,引用自QuartzCore 。因此,要解决您的问题,您需要导入 QuartzCore

关于ios - 尝试使用 Admob 构建应用程序时出现架构 x86_64 错误的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40088282/

相关文章:

iOS 自定义 URL 方案 XCode

AdMob - 发生错误。请稍后再试

ios - 如何在方法声明中使用预处理器宏?

ios - 在 iPad 上,当浏览器为 'closed' 时,如何使网页上的嵌入声音停止播放?

ios - 即使在关闭 View Controller 后调用了 dealloc 方法,内存也没有被正确释放

ios - 将拖放组件添加到 iOS 应用程序

xcode - Safari 扩展无效代码签名标识符

C异常无效输出

ios - 广告覆盖了tableview

java - Admob 广告给出错误代码 2(不显示)