iOS メディエーションのランタイム エラーを解決する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アプリの起動後にダイナミック リンカー エラーが発生した場合は、次のランタイム エラーが発生することがあります。
dylib
dynamic framework
Library not loaded
no such file
これらのエラーを解決するには、これらのフレームワークを静的にリンクします。このガイドでは、iOS 向けに Unity アプリをビルドし、これらのフレームワークをリンクする方法について説明します。
前提条件
先に進む前に、スタートガイドの手順を完了してください。
フレームワークを静的にリンクする
次の表に、動的フレームワークを使用する広告ソースと、静的リンクを自動的に処理する最小アダプター バージョンを示します。フレームワークを静的にリンクするには、アダプターを次の最小バージョン以上に更新します。
静的リンクが自動的に設定されない古いアダプター バージョンを使用するには、次の操作を行います。
次の内容の Assets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml
ファイルを作成します。
<dependencies>
<iosPods>
<!-- AppLovin adapter dependencies. -->
<iosPod name="AppLovinSDK" addToAllTargets="true"/>
<!-- InMobi adapter dependencies. -->
<iosPod name="InMobiSDK" addToAllTargets="true"/>
<!-- maio adapter dependencies. -->
<iosPod name="MaioSDK-v2" addToAllTargets="true"/>
</iosPods>
</dependencies>
アプリに該当する広告ソースの <iosPod>
要素のみを残します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-19 UTC。
[null,null,["最終更新日 2025-08-19 UTC。"],[],[],null,["If you encounter dynamic linker errors after app launch, you might encounter\nthe following runtime errors:\n\n- `dylib`\n- `dynamic framework`\n- `Library not loaded`\n- `no such file`\n\nTo resolve these errors, link these frameworks statically. This guide covers how\nto build the Unity application for iOS and link these frameworks.\n\nPrerequisites\n\nBefore continuing, complete [Get started](/admob/unity/quick-start).\n\nLink frameworks statically\n\nThe following table lists ad sources with dynamic frameworks and the minimum\nadapter version that automatically handles static linking. To link frameworks\nstatically, update your adapters to the following minimum version or higher:\n\n| Ad source | Minimum version for automatic static linking |\n|-----------|--------------------------------------------------------|\n| AppLovin | [8.1.1](/admob/unity/mediation/applovin#version-8.1.1) |\n| InMobi | [4.7.1](/admob/unity/mediation/inmobi#version-4.7.1) |\n| maio | [3.0.0](/admob/unity/mediation/maio#version-3.0.0) |\n\nManually configure static linking\n\nTo use an older adapter version that doesn't automatically configure static\nlinking, do the following:\n\n1. Create an `Assets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml` file\n with the following content:\n\n \u003cdependencies\u003e\n \u003ciosPods\u003e\n \u003c!-- AppLovin adapter dependencies. --\u003e\n \u003ciosPod name=\"AppLovinSDK\" addToAllTargets=\"true\"/\u003e\n \u003c!-- InMobi adapter dependencies. --\u003e\n \u003ciosPod name=\"InMobiSDK\" addToAllTargets=\"true\"/\u003e\n \u003c!-- maio adapter dependencies. --\u003e\n \u003ciosPod name=\"MaioSDK-v2\" addToAllTargets=\"true\"/\u003e\n \u003c/iosPods\u003e\n \u003c/dependencies\u003e\n\n2. Keep only the `\u003ciosPod\u003e` elements for ad sources that apply to your app."]]