External Dependency Error

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:

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?

There is a simple but laborious way to solve this:

  • Unzip all the packages where the .dll is throwing this error;
  • Add those packages as local packages (using Package Manager windows or editing the manifest.json file);
  • 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.

  • If you like, you can re-zip the packages again into .tgz. This post should help.
3 Likes

unity community is the best thank u for help

1 Like

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

have it installed already but the problem still persist

You save my day. Thank you.

1 Like

hyagogow

There is a simple but laborious way to solve this:

  • Unzip all the packages where the .dll is throwing this error;
  • Add those packages as local packages (using Package Manager windows or editing the manifest.json file);
  • Now you should be able to edit those .dll files.
    Select them and choose macOS on Platform Settings OS, for each one:

Gracias, solucionado el problema
en Unity 2022.3.4f1
Assets > EsternalDependencyManager > Editor > 1.2.177 > Google.IOSResolver

una vez abierta la ventana Google.IOS Resolver (Default Asset) Import Settings

Platform settings
OS---------------> macOS