# Swift Package Manager

A swift package manager that wraps AATKit and ad networks.

### Integration Steps <a href="#integration-steps" id="integration-steps"></a>

* &#x20;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](https://aatkit.gitbook.io/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"**.

<figure><img src="https://3006681101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC07HayBzqyav5R2yFhOr%2Fuploads%2FjV3L3ae0Z051GSJHn31c%2FScreenshot%202025-04-15%20at%209.53.18%E2%80%AFAM.png?alt=media&#x26;token=24837038-4ca1-4ff0-835c-ac1e26573b3d" alt="" width="563"><figcaption></figcaption></figure>

* 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:

<figure><img src="https://3006681101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC07HayBzqyav5R2yFhOr%2Fuploads%2FQ9Ug8w1b40hrnEs63fBK%2FScreenshot%202025-04-15%20at%2010.06.37%E2%80%AFAM.png?alt=media&#x26;token=f21c4b6d-68e7-4249-815d-2724b8713bae" alt=""><figcaption></figcaption></figure>

#### Integrate AATKit with specific ad network SDKs: <a href="#integrate-aatkit-with-specific-a-d-network-sdks" id="integrate-aatkit-with-specific-a-d-network-sdks"></a>

* 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:

<figure><img src="https://3006681101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC07HayBzqyav5R2yFhOr%2Fuploads%2FhVNo30EBQ6RwQ1kGdANu%2FScreenshot%202025-04-15%20at%2010.09.51%E2%80%AFAM.png?alt=media&#x26;token=7e4d3a83-95bf-45bb-894b-5f25a7bcab26" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
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`.
  {% endhint %}

### Configure Google Ads SDK <a href="#add-an-optional-ad-network" id="add-an-optional-ad-network"></a>

Please configure your Google Mobile Ads SDK as described [here](https://aatkit.gitbook.io/ios-integration/ad-networks/google-mobile-ads-sdk).
