iOS
Prerequisites
- iOS 13.0 or above.
- Xcode 15.2 or above.
- CocoaPods 1.10.0 or above.
Installation
Create Podfile
If you don't have it already, you need to create the Podfile in the project root directory.
Update Podfile
Open the Podfile and add the following code to the application's target:
Standard Edition
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Yodo1Games/MAS-Spec.git'
pod 'Yodo1MasFull', '4.14.1'
use_frameworks! :linkage => :static
Custom Ad Networks
Please contact support for advice on which ad networks are safe to remove without impacting performance. AppLovin, Google AdMob, and ToBid are required and cannot be removed
To add or remove ad networks you can include and exclude the following pod
definitions in PodFile
.
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Yodo1Games/MAS-Spec.git'
# AppLovin
pod 'Yodo1MasMediationApplovin/Core', '4.14.1'
pod 'Yodo1MasMediationApplovin/AdMob', '4.14.1'
# BidMachine
pod 'Yodo1MasMediationBidMachine/Core', '4.14.1'
pod 'Yodo1MasMediationBidMachine/AppLovin', '4.14.1'
# Bigo Ads
pod 'Yodo1MasMediationBigo/Core', '4.14.1'
pod 'Yodo1MasMediationBigo/AppLovin', '4.14.1'
# CSJ
pod 'Yodo1MasMediationCSJ/Core', '4.14.1'
pod 'Yodo1MasMediationCSJ/ToBid', '4.14.1'
# DT Exchange(Fyber)
pod 'Yodo1MasMediationFyber/Core', '4.14.1'
pod 'Yodo1MasMediationFyber/AppLovin', '4.14.1'
pod 'Yodo1MasMediationFyber/AdMob', '4.14.1'
# Google AdMob
pod 'Yodo1MasMediationAdMob/Core', '4.14.1'
pod 'Yodo1MasMediationAdMob/AppLovin', '4.14.1'
# ironSource
pod 'Yodo1MasMediationIronSource/Core', '4.14.1'
pod 'Yodo1MasMediationIronSource/AppLovin', '4.14.1'
pod 'Yodo1MasMediationIronSource/AdMob', '4.14.1'
# InMobi
pod 'Yodo1MasMediationInMobi/Core', '4.14.1'
pod 'Yodo1MasMediationInMobi/AppLovin', '4.14.1'
pod 'Yodo1MasMediationInMobi/AdMob', '4.14.1'
# Liftoff Monetize(Vungle)
pod 'Yodo1MasMediationVungle/Core', '4.14.1'
pod 'Yodo1MasMediationVungle/AppLovin', '4.14.1'
pod 'Yodo1MasMediationVungle/AdMob', '4.14.1'
# Meta Audience Network(Facebook)
pod 'Yodo1MasMediationFacebook/Core', '4.14.1'
pod 'Yodo1MasMediationFacebook/AppLovin', '4.14.1'
pod 'Yodo1MasMediationFacebook/AdMob', '4.14.1'
# Mintegral
pod 'Yodo1MasMediationMintegral/Core', '4.14.1'
pod 'Yodo1MasMediationMintegral/AdMob', '4.14.1'
pod 'Yodo1MasMediationMintegral/AppLovin', '4.14.1'
pod 'Yodo1MasMediationMintegral/ToBid', '4.14.1'
# Moloco
pod 'Yodo1MasMediationMoloco/Core', '4.14.1'
pod 'Yodo1MasMediationMoloco/AppLovin', '4.14.1'
# Pangle
pod 'Yodo1MasMediationPangle/Core', '4.14.1'
pod 'Yodo1MasMediationPangle/AppLovin', '4.14.1'
pod 'Yodo1MasMediationPangle/AdMob', '4.14.1'
# ToBid
pod 'Yodo1MasMediationToBid/Core', '4.14.1'
# Tencent
pod 'Yodo1MasMediationTencent/Core', '4.14.1'
pod 'Yodo1MasMediationTencent/ToBid', '4.14.1'
# TradPlus
pod 'Yodo1MasMediationTradPlus/Core', '4.14.1'
# Unity Ads
pod 'Yodo1MasMediationUnityAds/Core', '4.14.1'
pod 'Yodo1MasMediationUnityAds/AppLovin', '4.14.1'
pod 'Yodo1MasMediationUnityAds/AdMob', '4.14.1'
# YSO Network
pod 'Yodo1MasMediationYso/Core', '4.14.1'
pod 'Yodo1MasMediationYso/AppLovin', '4.14.1'
# Yodo1 Test Ads
pod 'Yodo1MasMediationYodo1', '4.14.1'
use_frameworks! :linkage => :static
Then execute the following command in terminal to install the pods:
pod install --repo-update
To ensure your build is compatible with artifacts that contain Swift, set Build Settings Always Embed Swift Standard Libraries
to YES
.
If you use Swift and build for iOS 12.2.0 or earlier, add /usr/lib/swift
to Build Settings > Runpath Search Paths
to prevent issues with libswiftCore.dylib
.