GoogleMobileAds出现未定义的符号问题 [英] Undefined symbols issue with GoogleMobileAds
问题描述
我正在建立动态框架,在其中我要导入GoogleMobileAds框架(我没有将其链接为二进制文件)
I am building dynamic framework in which i am importing GoogleMobileAds framework (i am not linking it as binary)
我只是在将其保持在类代码中的同时将其导入项目路径中的框架,而无需在构建阶段将其链接到链接二进制文件中
I am simply importing it in the class code while keeping the framework on the project path without linking it in the "Link binary" in the build phases
import GoogleMobileAds
尝试构建项目时出现此错误:
I am getting this error when trying to build the project:
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直接链接到框架。
Since i am building framework i don't want to link the GoogleMobileAds directly to the framework.
我确保链接了GoogleMobileAds所需的所有系统框架,并确信这不是问题所在
I made sure i am linking all the system frameworks required by GoogleMobileAds and confident that this is not the issue
任何想法如何解决这个问题?
Any ideas how to solve this?
推荐答案
我遇到了同样的问题
我删除了吊舱并从
https://firebase.google手动导入adMob FrameWork。 com / docs / admob / ios / download
并将 GoogleMobileAds.framework拖到我的项目中,
清理并运行
i had same issue
in my case i removed pod and import adMob FrameWork manually from
https://firebase.google.com/docs/admob/ios/download
and just drag "GoogleMobileAds.framework" into my project,
clean and run
这篇关于GoogleMobileAds出现未定义的符号问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!