Download the iOS SDK
Prerequisites
- MAS supports iOS 10.0 and above.
- Make sure you are using Xcode 13+.
- You need to use CocoaPods 1.10.0 or above.
- It’s required to update your app-ads.txt file to be able to see the ads.
Import MAS
1.1 Create the Podfile
If you don’t have it already, you need to create the Podfile file in the project root directory.
1.2 Import the SDK into your project
Open the 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.8.9'
use_frameworks! :linkage => :static
Then execute the following command in Terminal to install the pods:
pod install --repo-update
Note
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 any issues with libswiftCore.dylib
.