Known Issues

1. Cocoapods Version Issues

You may have an issue downloading certain dependencies if you do not have the correct version of Cocoapods on your computer.

To address this, we have created a simple script to help you configure Cocoapods correctly. Simply copy paste it into your terminal and run it to upgrade your Cocoapods to a MAS-compatible version.

/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/nicky9112/0bf903795f77c5052ff12c92e629f975/raw/a8783d03c96b8d1d50f92977bfa0112711fbc57a/install-cocoapods.sh)"

2. FBCoreKit Conflicts

If you are using a Facebook related SDK and have a FBCoreKit conflict, you may resolve it by following these steps:

  • Enter Assets/Yodo1/MAS/Editor/Dependencies directory and open the Yodo1MasiOSDependencies.xml file
  • Remove or comment <iosPod name="FBSDKCoreKit" version="~> 6.5.2" bitcode="false" minTargetSdk="9.0" />

3. Remove user_frameworks!

Do not check ‘Add use_frameworks!’ and ‘Always add the main target to Podfile’.

However, if you use the Facebook sharing function or login function, please check ‘Add use_frameworks!’ and ‘Always add the main target to Podfile’.

4. Firebase Compatibility

If you are using Firebase, please upgrade to Firebase 7.0.0 or above. Lower versions are not compatible with AdMob. Since MAS uses the latest version of the Admob SDK, which requires a matching version of Firebase.


If you cannot upgrade to Firebase 7.0.0 or above, please follow these steps after adding the MAS SDK to your game:

  • Open the mainTemplate.gradle file in the directory Assets/Plugins/Android
  • Change specified content, {MAS_SDK_VERSION} is the SDK version of MAS, e.g. 4.0.0.3

Before

implementation 'com.yodo1.mas:google:{MAS_SDK_VERSION}'

After

implementation('com.yodo1.mas:google:{MAS_SDK_VERSION}') {

        exclude group: 'com.google.android.gms', module: 'play-services-measurement'
        exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk-api'
	}

5. Xcode Workspace

When building your project with Xcode, open the Xcode workspace file instead of the Xcode project file:

open App.xcworkspace

6. Checking If MAS Is In Your APK

5.1. In the presence of MAS, your Unity project will have the following structure:

5.2. Check Unity integration mode

5.2.1)If you’re using gradle, you will find this reference – 'com.yodo1.mas:standard:versioncode' or 'com.yodo1.mas:google:versioncode' in the file at the end of .gradle in the Assets/Plugins/Android folder.

5.2.2)If you’re using Android Resolver you will find this file – com.yodo1.mas:standard:version.aar or com.yodo1.mas:google:version.aar in the Assets/Plugins/Android folder.

5.3. In the presence of MAS, your APK will have the package com.yodo1.advert in one of the .dex files, appearing with the following structure:

Drag apk file to AndroidStudio, or you can follow this guide Analyze your build with APK Analyzer

5.4. You will find the MAS initialization log console:

7. Duplicate Code Errors

Often, you will encounter duplicate code errors, wherein MAS appears to conflict with other SDKs in your project.

This is due to the fact that MAS includes 14 ad network sdks. For details, check this link.

You must remove all traces of code from other ad network SDKs, including the SDKs themselves and any implementation of ad units (banners, interstitials, rewarded videos) from your game before you can use MAS.

8. Resolution Failed and Failed to Fetch Dependencies Issue

Examples of the issue:

Issue solution:

  1. Upgrade the latest version of MAS SDK.
  2. Select “Custom Main Gradle Template”, take Unity2020 as an example.
  1. Force Resolve.
  1. Build the APK.

9. Failed Xcode Project on Unity

Updated on August 20, 2021

Was this article helpful?

Related Articles