Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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:
    12
    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:
    12
    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.
     
  3. codingDevil

    codingDevil

    Joined:
    Feb 13, 2020
    Posts:
    5
    Delete "\Assets\Plugins\iOS\unity-plugin-library.a"
     
    NCosoDev and di8735 like this.
  4. NCosoDev

    NCosoDev

    Joined:
    Apr 23, 2021
    Posts:
    1
    saved my life after hours and hours