【AdMob】AdMob導入時のエラー解決【Unity】

screenshot ゲーム開発

バージョン
Unity:2022.3.10f1
AdMob:v8.6.0

以下、エラー文

Assembly ‘Assets/ExternalDependencyManager/Editor/1.2.177/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.

Android向けに作っていると上記のようなエラーがコンソールに出現。

よく見るとiOS絡みのエラーのようである。

解決法

UnityHubから現在のUnityバージョンのiOS Build Supportをインストールする。

UnityHub→インストールから現在のバージョンの設定マークからモジュールを加える

iOS Build Supportをインストールする

インストール後、プロジェクトを再起動するとエラー文が表示されなくなる。

Unity用AdMob導入公式HP

始める  |  Unity  |  Google for Developers
Unity でアプリを開発している AdMob パブリッシャー向けのモバイル広告用 SDK です。

コメント