Undefined symbols issue with GoogleMobileAds

时间秒杀一切 提交于 2019-12-10 19:09:40

问题


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

Since i am building framework i don't want to link the GoogleMobileAds directly to the framework.

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?


回答1:


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



来源:https://stackoverflow.com/questions/34609229/undefined-symbols-issue-with-googlemobileads

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!