体系结构arm64的未定义符号:“ _ OBJC_CLASS _ $ _ GADMediatedNativeAdNotificationSource”

时间:2020-06-18 15:57:37

标签: ios xcode admob inmobi

我无法在iOS应用中实现InMobi中介SDK和适配器。生成错误:

return (context.dependOnInheritedWidgetOfExactType<ThemeSwitcher>()).data;

我正在使用coocapods作为依赖项管理器。这是我的Podfile:

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GADMediatedNativeAdNotificationSource", referenced from:
  objc-class-ref in InMobiAdapter(GADMAdapterInMobi.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

我设法通过使用

解决它
pod 'InMobiSDK'

代替

pod 'GoogleMobileAdsMediationInMobi'

并将InMobiAdapter添加到项目中,从here下载。

InMobi Support Center上的完整说明。