尝试使用Admob构建应用程序时,架构x86_64的未定义符号出错

时间:2016-10-17 13:53:43

标签: 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)

还有更多这样的错误。我和firebase分别安装了admob,因为我不想使用firebase,只是欣赏。我怎样才能解决这个问题?

4 个答案:

答案 0 :(得分:2)

将来,您可以随时使用Google引用的未定义符号来找出您缺少的框架。在这种情况下,Google CACurrentMediaTime,从QuartzCore引用。因此,要解决您的问题,您需要TBytes

答案 1 :(得分:1)

添加框架" CoreGraphics"到你的项目,它会没问题。

答案 2 :(得分:1)

将所有框架添加到Admob框架附带的项目中。

答案 3 :(得分:1)

我最终得到了这个链接的答案:

GoogleMobileAds iOS 9 link error

Admob有其他框架,他们在教程中没有提及。上面链接中的图片发布在下面。

我没有将此标记为答案,因为技术上Daniel Storm的答案是让我找到这个stackoverflow链接的原因。通过Google搜索符号,您可以找到框架,它是解决任何此类错误的一部分。

enter image description here