ios - GoogleMobileAds 的 undefined symbol 问题

标签 ios swift admob arm64

我正在构建动态框架,我正在其中导入 GoogleMobileAds 框架(我没有将其链接为二进制文件)

我只是将它导入到类代码中,同时将框架保留在项目路径上,而不是在构建阶段将其链接到“链接二进制文件”中

import GoogleMobileAds

我在尝试构建项目时遇到此错误:

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GADInterstitial", referenced from:
  static VeediSDK_admob.VeediUtils.loadNewAdd (VeediSDK_admob.VeediUtils.Type)() -> __ObjC.GADInterstitial in           
 VeediUtils.o
 "_OBJC_CLASS_$_GADRequest", referenced from:
  static VeediSDK_admob.VeediUtils.loadNewAdd (VeediSDK_admob.VeediUtils.Type)() -> __ObjC.GADInterstitial in VeediUtils.o
ld: symbol(s) not found for architecture arm64

由于我正在构建框架,所以我不想将 GoogleMobileAds 直接链接到框架。

我确定我链接了 GoogleMobileAds 所需的所有系统框架,并确信这不是问题

有什么解决办法吗?

最佳答案

我有同样的问题
在我的例子中,我删除了 pod 并从
手动导入 adMob FrameWork https://firebase.google.com/docs/admob/ios/download
只需将“GoogleMobileAds.framework”拖到我的项目中,
清理并运行

关于ios - GoogleMobileAds 的 undefined symbol 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34609229/

相关文章:

ios - 快速上传图像到FTP服务器

ios - 取消选中 "checked cell"

ios - Native Express 广告未在我的 UITableView 中显示

android - 通过应用内购买去除广告

android - 步进机内的日期选择器

ios - 在单个 UICollectionViewController 中管理多个 UICollectionViewLayout

swift - 如何在 swift 3.0 中从 google api 获取时间值

android - 如何以编程方式为 AdMob 指定 adUnitId?

ios - 无需APNS即可从服务器向iOS设备实时推送数据

iOS- swift : How to write generic function for this case?