概要
UnityでGoogleAdMobを導入するようになってから
XCodeのBuildの際にエラーが複数出るようになりました。
エラー
XCodeでビルドした時、UnityFrameworkに以下のようなエラーが出ました。
実機(iOS15)にビルドテストをした時、Building succeed ではなくBuilding failedと表示されました。
環境
AdMobプラグイン -> https://dl.google.com/googleadmobadssdk/GoogleMobileAds-Ad-Placements.unitypackage?hl=ja
Unity 2021.2.7f1
補足
GoogleAdMobを導入してからメモリリークがよく発生します。
何故でしょうか?
A Native Collection has not been disposed, resulting in a memory leak. Allocated from: Unity.Collections.NativeArray`1:.ctor(Byte[], Allocator) (at /Users/bokken/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:69) UnityEngine.Networking.UploadHandlerRaw:.ctor(Byte[]) (at /Users/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/UploadHandler/UploadHandler.bindings.cs:95) UnityEngine.Networking.UnityWebRequest:SetupPost(UnityWebRequest, WWWForm) (at /Users/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/WebRequestExtensions.cs:206) UnityEngine.Networking.UnityWebRequest:Post(String, WWWForm) (at /Users/bokken/buildslave/unity/build/Modules/UnityWebRequest/Public/WebRequestExtensions.cs:184) System.Reflection.RuntimeMethodInfo:InternalInvoke(RuntimeMethodInfo, Object, Object[], Exception&) System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) Google.PortableWebRequest:StartRequest(HttpMethod, String, IDictionary`2, WWWForm) (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\PortableWebRequest.cs:481) Google.<StartRequestOnMainThread>c__AnonStorey0:<>m__0() (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\PortableWebRequest.cs:443) Google.RunOnMainThread:ExecuteNext() (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:486) Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:536) Google.RunOnMainThread:RunAction(Action) (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:343) Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:530) Google.RunOnMainThread:ExecuteAll() (at Z:\tmp\tmp.T7As57P2EG\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:512) UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:356)
Banner広告はGoogleAdPlacementsを利用しました。
あなたの回答
tips
プレビュー