Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

Discussion in 'iOS and tvOS' started by dingaloo12, Oct 3, 2023.

  1. dingaloo12

    dingaloo12

    Joined:
    Jun 30, 2020
    Posts:
    10
    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
     
  2. dingaloo12

    dingaloo12

    Joined:
    Jun 30, 2020
    Posts:
    10
    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.