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, link these frameworks, and find dependencies for different adapter versions.
Prerequisites
Before continuing, complete Get started.
Link frameworks statically
The following mediation ad sources SDKs require linking statically:
- AppLovin
- InMobi
- maio
To link a mediation ad source SDK statically, do the following:
- Create an
Assets/GoogleMobileAds/Editor/iOSDynamicDependencies.xml
file. - Add a
dependencies/iosPods/iosPod
element for each framework. - In the
iosPod
element include aaddToAllTargets
attribute with a value oftrue
.
<dependencies>
<iosPods>
<!-- AppLovin adapter dependencies. -->
<iosPod name="AppLovinSDK" version="13.1.0" addToAllTargets="true"/>
<!-- InMobi adapter dependencies. -->
<iosPod name="InMobiSDK" version="10.8.0" addToAllTargets="true"/>
<!-- maio adapter dependencies. -->
<iosPod name="MaioSDK-v2" version="2.1.6" addToAllTargets="true"/>
</iosPods>
</dependencies>
Find dependencies for different adapter versions
To find dependencies for a different adapter version, do the following:
Select the sample podspec for the adapter you want to update:
Open the podspec for the adapter version your project uses.
Update
iosPod
dependency to match the version listed in thedependencies
key of the podspec.