简体   繁体   中英

Undefined symbols for architecture arm64: “_OBJC_CLASS_$_GADMediatedNativeAdNotificationSource”

I'm having trouble implementing InMobi mediation SDK and adapter into iOS app. Built is resulting with error:

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)

I'm using coocapods as dependency manager. Here is my Podfile:

# 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

I manage to solve it by using

pod 'InMobiSDK'

instead of

pod 'GoogleMobileAdsMediationInMobi'

and adding InMobiAdapter into project, download from here .

Complete instruction on InMobi Support Center .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM