GoogleMobileAds会出现未定义的符号

我正在构建动态框架,我在其中导入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”拖到我的项目中,
清洁和运行