Resolve iOS mediation runtime errors

If you encounter dynamic linker errors after app launch, you might encounter the following runtime errors:

  • dylib
  • dynamic framework
  • Library not loaded
  • no such file

To resolve these errors, link these frameworks statically. This guide covers how to build the Unity application for iOS and link these frameworks.

Prerequisites

Before continuing, complete Get started .

The following table lists ad sources with dynamic frameworks and the minimum adapter version that automatically handles static linking. To link frameworks statically, update your adapters to the following minimum version or higher:

Ad source Minimum version for automatic static linking
AppLovin 8.1.1
InMobi 4.7.1
maio 3.0.0

Manually configure static linking

To use an older adapter version that doesn't automatically configure static linking, do the following:

  1. Create an Assets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml file with the following content:

     <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> 
    
  2. Keep only the <iosPod> elements for ad sources that apply to your app.

Create a Mobile Website
View Site in Mobile | Classic
Share by: