'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 1:[1]
Version 4.6.1 of the iOS AdColony SDK requires Xcode 12.5.
From the changelog:
4.6.1 (2021/04/21)
- SKAdNetwork view-through attribution support
- Build requires Xcode 12.5
This does mean that if you go back to 4.6.0 you should not need Xcode 12.5. You can do this by selecting a specific version of the 'GoogleMobileAdsMediationAdColony' pod:
pod 'GoogleMobileAdsMediationAdColony', '4.6.0.0'
You can see in the podspec here that this version uses version 4.6.0 of the AdColony SDK.
Obviously this is not a long-term solution, but as Xcode 12.5 requires Big Sur it allows a little more time before having to run an major OS update all your dev machines.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Danny Parker |
