4

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?

Lukesivi
  • 2,176
  • 4
  • 24
  • 42
Michael A
  • 5,622
  • 16
  • 70
  • 119

2 Answers2

2

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

Sultan Ali
  • 2,347
  • 26
  • 23
0

I had the same issue. For me helped removing package External Dependency Manager from

Assets/ExternalDependencyManager

Etienne Kaiser
  • 2,634
  • 8
  • 19
  • 29