> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onetrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample App

# Overview

OneTrust offers a sample app where you can explore the SDK functionality and setup. To download it, follow the instructions below.

> 📘
>
> The sample app is optional.

## Download the sample app

1. Log in to your OneTrust tenant or admin console.
2. Navigate to **Mobile App Consent > Integration > SDKs > Your app > SDK**.
3. Select the framework you want to download (**Native SDK**, **Unity SDK**, **MAUI SDK**).
4. Select the SDK version on the **Select API Version** field.
5. Click the **Download SDK** button.

![](https://files.readme.io/72f6ce1556ecb3206ffb23f31dcfa69a8423c66430c6b18f60c70925c71699b8-image.png)

## Access the demo app and configure the Xcode project

> 📘
>
> The steps below reference the **iOS** demo app. For **tvOS**, follow the same steps but instead of **OTPublishersNativeApp**, it will be **OTPublishersNativeAppTvOS**.

1. From the **.zip** file downloaded above, select **OTPublishersNativeApp**.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/5fa5a67b70a9699b9228e51a594252369fc5449529d80a6a011c0c2d39a26ea2-Screenshot_2025-05-20_at_3.10.01_PM.png",
        "",
        ""
      ],
      "align": "center"
    }
  ]
}
[/block]

2. Open the **OTPublishersNativeApp.xcworkspace** file.
3. Click on the top level project **OTPublishersNativeApp** and select **OTPublishersNativeApp** under **Project**.
4. Click **Package Dependencies**.
5. Under the **OTPublishersHeadlessSDK** package, click the dropdown under **Dependency Rule** and select **Exact Version**. For tvOS, the package name is **OTPublishersHeadlessSDKtvOS**.
6. Specify the version of the OneTrust SDK you would like to download. This is usually the same as the SDK version you have published in the OneTrust tenant/admin console.

> 👍
>
> For more information on publishing SDK versions, see [Publishing the SDK](https://developer.onetrust.com/onetrust/docs/publish-changes#publishing-the-sdk).

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/efba9fb13ab99f7f30e86b4c0c75f598dafb29fe84d977e51842867f16983229-Screenshot_2025-05-20_at_3.18.32_PM.png",
        "",
        ""
      ],
      "align": "center"
    }
  ]
}
[/block]

## Run the app

1. In the build target, select `OTPublishersNativeApp-SPM`.
2. Run the app.
3. In the **Settings** page of the app that is launched, enter the CDN Location, Domain Id (App ID), and Language. Other parameters are optional.
4. Click **Download SDK Data** to initialize the SDK.
5. Click **Home**. You can now access and explore the SDK functionality.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/5a2443f6598f686483720a10df16391d56edc86705abfa6a5b66ddde6f4d5c33-Screenshot_2025-05-20_at_3.27.28_PM.png",
        "",
        ""
      ],
      "align": "center"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/c1c0e8b5a610cb7450ca68e3fcecf5f71b4301f3526f33807b3d7dd8c58789c8-Screenshot_2025-05-20_at_3.26.29_PM.png",
        "",
        ""
      ],
      "align": "center"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/8317d267061ce1be1cca1bcd744bc4739c51e668a63334c73e189cb47b7c223b-Screenshot_2025-05-20_at_3.44.04_PM.png",
        "",
        ""
      ],
      "align": "center"
    }
  ]
}
[/block]