Swift Package Manager

Add AATKit to your app using Swift Package Manager

A swift package manager that wraps AATKit and ad networks.

Integration Steps

  • Open your Xcode project, navigate the File tab within the macOS bar, and click on “Add Packages”.

  • In the URL field, enter: https://github.com/AddApptr/AATKitSPM and select AATKitSPM.

  • Set the dependency rule to "Exact Version" and specify the desired AATKit version (refer to the release notes for the latest stable version).

  • Click Next and wait for the package to finish fetching.

  • When prompted to choose a target, leave it unselected and click "Add Package".

  • Switch to project and choose your target then general.

  • Add the required AATKit dependencies under "Frameworks, Libraries, and Embedded Content" depending on which libraries you intend to include in your project.

Integrate AATKit with all default ad network SDKs:

  • Choose AATKit-Core and AATKit-Default like the following:

Integrate AATKit with specific ad network SDKs:

  • Select AATKit-Core and all ad networks you want by selecting AATKit-<AD_NETWORK> (Replace <AD_NETWORK> with the proper Ad Network) like the following:

You have to add -ObjC to your build settings (Other Linker Flags) by following these steps:

  • Click on the project navigator.

  • Click on your target and build settings.

  • Search for "other linker flags".

  • Add -ObjC.

Configure Google Ads SDK

Please configure your Google Mobile Ads SDK as described here.

Last updated