架构 arm64 的未定义符号:“_OBJC_CLASS_$_GADMediatedNativeAdNotificationSource”

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GADMediatedNativeAdNotificationSource"

我在 iOS 应用程序中实施 InMobi 中介 SDK 和适配器时遇到问题。构建结果错误:

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)

我正在使用 coocapods 作为依赖项管理器。这是我的播客文件:

# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!

target 'APP-mobile' do
    pod 'Google-Mobile-Ads-SDK'
    pod 'GoogleMobileAdsMediationInMobi'
    pod 'lottie-ios'
    pod 'Firebase/Crashlytics'
    pod 'Firebase/Analytics'
end

target 'APP-desktop' do

end

我设法用

解决了
pod 'InMobiSDK'

而不是

pod 'GoogleMobileAdsMediationInMobi'

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

完成 InMobi Support Center 的说明。