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.
Link frameworks statically
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:
Create an
Assets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml
file with the following content:name="AppLovinSDK" addToAllTargets="true"/> name="InMobiSDK" addToAllTargets="true"/> name="MaioSDK-v2" addToAllTargets="true"/> Keep only the
elements for ad sources that apply to your app.