# 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/AATKit` and select **AATKit**.
* 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="/files/X5FCxhAffW7QKH63McXC" 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="/files/idJS8daZficVEwvAT7MW" 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="/files/zywWozx2TOAETufT1AM3" 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](/ios-integration/ad-networks/google-mobile-ads-sdk.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aatkit.gitbook.io/ios-integration/start/setup/swift-package-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
