Download the iOS SDK
- iOS15 requires
Xcode 13+
. Please make sure you are using the latest version of Xcode. - MAS supports iOS 10.0 and above
- The easiest way is to integrate is by using
CocoaPods
(Please use version1.10.0
and above), If you have not used ‘CocoaPods’ previously, please refer to its official documentation and learn how to use it to create aPodfile
- You need to remove Facebook SDK from your project
Add iOS SDK to Your Project
1.1 Create the Podfile
file
Create the Podfile
file in the project root directory
touch Podfile
1.2 Import the iOS SDK into the project
Please open the project’s Podfile
file and add the following code to the application’s target:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Yodo1Games/MAS-Spec.git'
pod 'Yodo1MasFull', '4.6.6'
# If you use Facebook to share or log in, please add
# use_frameworks!
If your game prefers to use the 4 top ad networks to keep the SDK lightweight without making compromises on Monetization, add the following code to the application’s target:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/Yodo1Games/MAS-Spec.git'
pod 'Yodo1MasLite', '4.6.6'
# If you use Facebook to share or log in, please add
# use_frameworks!
Execute the following command in Terminal
:
pod install --repo-update
Tips:
To ensure your build is compatible with artifacts that contain Swift, set
Build Settings Always Embed Swift Standard Libraries
toYES
.
If you use Swift and build for iOS 12.2.0 or earlier, add
/usr/lib/swift
toBuild Settings > Runpath Search Paths
to prevent any issues withlibswiftCore.dylib
.