Missing Class/ Error GoogleAds-Unity on IOS

119 views
Skip to first unread message

Tomi_Kelso

unread,
Dec 2, 2022, 6:07:13 AM12/2/22
to Google Mobile Ads SDK Developers
Hey Guys,
i have a problem with Admob-Unity on IOS.

CocoaPod Version 1.11.3
Unity 2020.3.43f1
Xcode 14.1
IMac Ventura 13.0.1

Problem:
After adding the latest admob version to my project, i always get the error messages (1-4) in xcode. Errors like this
"Cannot find protocol declaration for GADRewardedAdDelegate".

I had a similar problem on android before and solved it by creating a proguard file with the keep condition (5). I dont know if its the same problem on IOS .

When I switch to the Admob Version 7.68.0 or lower it doesnt has any error.
the same was on android and the errors with newer admob versions were only gone with the proguard file

Unfortunately, I'm not very familiar with Xcode and IOS in general. Do you have some information that I can use to do something similar to the proguard file for IOS

What I've tried so far:
- switching Unity Editor Versions
- Delete admob completely from unity and add it again
- Updating Cocoapods, Xcode, OS
Basically I've tried everything you can find on google under this topic

i added some screenshots of one of the errors and of the podfile.

thank you very much for your help!
1.png2.png3.png4.png5.JPG

Mobile Ads SDK Forum Advisor

unread,
Dec 2, 2022, 1:35:04 PM12/2/22
to thomaskell...@gmail.com, google-adm...@googlegroups.com
Hi Tomi,

Thank you for raising this to us. I went ahead and tested your concern on our sample app. As per checking, I was able to build it using the latest Google Mobile Ads Unity Plugin v7.3.1. With that, could you please try the said unity plugin on your app, then let me know how it goes?  

Regards,
Google Logo
Teejay Wennie
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2ghqIF:ref

Tomi_Kelso

unread,
Dec 2, 2022, 5:48:10 PM12/2/22
to Google Mobile Ads SDK Developers
Hey, thanks for the quick reply,

I found the error through the tip with the example project.

Errors like "Cannot find protocol declaration for GADRewardedAdDelegate" were triggered by old or unnecessary GADU files in Unity - Plugins/IOS.

Solution to my above problem:
in Unity - Plugins/IOS check that only required GADU.... files are available e.g. for Admob GADUAdNetworkExtras.h
(I just compared it to an empty project with just the Admob-Unity SDK)
All unused files have been removed and Admob now runs on IOS without any problems.

many thanks again

Mobile Ads SDK Forum Advisor

unread,
Dec 4, 2022, 10:54:58 PM12/4/22
to thomaskell...@gmail.com, google-adm...@googlegroups.com

Hi Tomi,

 

I'm glad to know that everything works well now. If you have any other concerns related to the implementation of Google Mobile Ads SDK, kindly provide us the details. We'll be happy to assist you.

 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2ghqIF:ref
Reply all
Reply to author
Forward
0 new messages