(XCODE) GAD errors in project that no longer has google ads installed. Nothing works

Hey all,

So somehow I am getting what I think are Google Ad errors, even though there is no trace of google ads anywhere I can see in my project. I checked the plist, mobile dependency resolver, packages folder, normal assets folder, it’s all gone. I haven’t been using it for a while. There are no issues when I build to android, because I guess google doesn’t care if I have google ads in there without actually using it or having it registered to anything.

However, on xcode, I have the normal issues, but the issues that I can’t get passed are similar to this:

Undefined symbol: _CGSizeFromGADAdSize
Undefined symbol: _GADAdSizeEqualToSize
Undefined symbol: OBJC_CLASS_GADAppOpenAd Undefined symbol: _OBJC_CLASS__GADRewardedInterstitialAd

Etc. There’s a lot of them.

If I download google ads dependencies, it works… but then the project hits an unskippable breakpoint. The error log says that there is an issue with google ads, because I haven’t registered the code correctly. It’s frustratiing and completely confusing, because I can’t find any trace of google ads stuff in my project. Any help or troubleshooting tips is super welcome

Note: I am using Unity Ads now

Hoping this will get some attention.

I’ve tried just adding the dependency through cocopods again. It of course runs again, and then catches the exception that google ads sdk is initialized but not set up through a google ads account or whatever. I just want to find the line of code that throws this and comment it out, but xcode won’t let me see anything other than the code and the fact that it came from unity framework, of which of course I can’t modify.

Delete “\Assets\Plugins\iOS\unity-plugin-library.a”

3 Likes

saved my life after hours and hours

Hello,

I tried this method and it did not work. I am not using Unity ads, just admob. All current versions of google ads, unity, etc. Xproject still gives the Undefined symbol error.