swiftxcodeadmobadcolony

Xcode complains link error: "Undefine symbol: '_OBJC_CLASS_$_SKAdImpression'" after pod GoogleMobileAdsMediationAdColony


I'm trying to add AdColony mediation into AdMob. I follow the instructions from 'https://developers.google.com/admob/ios/mediation/adcolony'.

After pod 'GoogleMobileAdsMediationAdColony', I open Xcode to test my app and get a link error:

Undefine symbol: '_OBJC_CLASS_$_SKAdImpression'

as well as a warning:

Could not find or use auto-linked framework 'AVFAudio'

I googled but got nothing.

Any suggestion? Thanks in advance.


Solution

  • SKAdImpression looks like a class that is new to iOS 14.5 so you likely need Xcode 12.5+ to contain that class definition.

    I was running into the same Undefined symbol: 'OBJC_CLASS$_SKAdImpression' error under Xcode 12.4, but upgrading to 12.5 fixed for me.