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

Question External Dependency Error

Discussion in 'Editor & General Support' started by russellnadin, Jul 5, 2023.

  1. russellnadin

    russellnadin

    Joined:
    Oct 26, 2022
    Posts:
    7
    I am trying to publish a game on the Google Play Store.
    I successfully created a build, uploaded to the Google Play Store, and tested.

    Today I wanted to place ads in the game.
    I went to Google AdMob Mobile ADS SDK (Untiy) found here:
    https://developers.google.com/admob/unity/quick-start

    I downloaded the files from Google, and imported into Unity.
    In Unity's package manager it is named "Adaptive Performance Samsung Android".
    Now I get an error.

    Here is the error:

    "Assembly 'Assets/ExternalDependencyManager/Editor/1.2.176/Google.IOSResolver.dll' will not be loaded due to errors:
    Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector."

    Here is a possible solution from 2021:

    https://github.com/googlesamples/unity-jar-resolver/issues/441

    The solution I found from 2021 GitHub is not something I understand how to do, seems overly complicated, and may be outdated.

    How do I resolve this error?

    or

    Maybe my whole process is wrong.
    How do I get ads into my game the correct way?
     
  2. hyagogow

    hyagogow

    Joined:
    Apr 25, 2014
    Posts:
    26
    There is a simple but laborious way to solve this:
    1. Unzip all the packages where the .dll is throwing this error;
    2. Add those packages as local packages (using Package Manager windows or editing the manifest.json file);
    3. Now you should be able to edit those .dll files.
      Select them and choose macOS on Platform Settings OS, for each one:



      This should resolve the error.
    4. If you like, you can re-zip the packages again into .tgz. This post should help.
     
  3. gohawise

    gohawise

    Joined:
    Apr 24, 2020
    Posts:
    12
    unity community is the best thank u for help
     
  4. batuhanbyr

    batuhanbyr

    Joined:
    Mar 15, 2022
    Posts:
    1
    All you have to do is enter Unity Hub and click on the install section from here, you should find the version of Unity you are using and then click on add modules and download IOS Build Support. If you do this, your problem will be solved