我刚刚将 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/