# iOS

{% hint style="info" %}
**Current SDK Version: 3.66.1**

DT Offer Wall and DT FairBid are integrated through the same SDK: the DT FairBid SDK. Apps with an existing FairBid integration can proceed directly to the [Offer Wall Configuration](https://docs.digitalturbine.com/dt-offer-wall/publishers/dt-offer-wall-sdk/sdk-apis).
{% endhint %}

## Prerequisites

| PLATFORM | REQUIREMENT       |
| -------- | ----------------- |
| Xcode    | 14.1 and later.   |
| iOS      | iOS 13 and later. |

## Integration

Digital Turbine supports both CocoaPods and manual downloads to integrate the SDK.

### CocoaPods

Add the following line to your `Podfile` and run the `pod install` command:

{% code title="Ruby" %}

```ruby
pod 'FairBidSDK', '~> 3.66.1'
```

{% endcode %}

### Manual Download

{% @dt-download-buttons/FairBid-Download-Button-ios %}

1. Download and extract the DT FairBid SDK.
2. Drag and drop `FairBidSDK.xcframework` to your project. The **Choose options for adding these files** window appears.

<div align="left" data-with-frame="true"><img src="https://592572939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7drDlNSyycpmA7Zx8kgX%2Fuploads%2Fjpkwp4MuLRra6YSF5CGs%2FFairBidSDK.png?alt=media&#x26;token=297960a1-7bdb-4e1d-95a2-a05ebcdc7158" alt=""></div>

### Configuring Your Xcode Project

Configuration of the Xcode project involves the following steps:

1. [Import System Frameworks](#importing-system-frameworks)
2. [Disable Multitasking](#disable-multitasking)
3. [Disable the Linked Products Build Flag](#disable-the-linked-products-build-flag)
4. [App Transport Security](#app-transport-security)

#### **Importing System Frameworks**

If the **Enable Modules** option (`CLANG_ENABLE_MODULES`) is active in the project's Build Settings, there's no need to import any frameworks manually.

Import the DT FairBid framework umbrella header in your code, for example, in the `AppDelegate` class:

{% tabs %}
{% tab title="Swift" %}

```swift
#import <FairBidSDK/FairBidSDK.h>
```

{% endtab %}

{% tab title="Objevtive-C" %}

```objective-c
import FairBidSDK
```

{% endtab %}
{% endtabs %}

If you cannot enable modules, you might need to add the following frameworks to the **Frameworks, Libraries and Embedded Content** section in Xcode:

* `AdSupport`
* `CoreGraphics`
* `CoreLocation`
* `CoreTelephony`
* `MediaPlayer`
* `MessageUI`
* `MobileCoreServices`
* `QuartzCore`
* `Security`
* `StoreKit`
* `SystemConfiguration`

#### **Disable Multitasking**

Select the **Requires full-screen** checkbox from the **General** tab of your Xcode project's target settings page. This disables multitasking support, which must be disabled for ads to be able to set the orientation of their views.

<div align="left" data-with-frame="true"><img src="https://592572939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7drDlNSyycpmA7Zx8kgX%2Fuploads%2F2wPgWAFi9Isyw1HPA0uZ%2F1ab1993-DisableMultitasking.png?alt=media&#x26;token=fa6dd585-69c7-4ff2-9fb1-8a950735f144" alt=""></div>

#### **Disable the Linked Products Build Flag**

By default, Xcode strips libraries linked to the project. This may result in symbols missing for some ad networks, and subsequently, the DT FairBid SDK may not behave as expected.

To avoid this, set **Strip Linked Products** (`STRIP_INSTALLED_PRODUCT`) build flag to **No**.

<div align="left" data-with-frame="true"><img src="https://592572939-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7drDlNSyycpmA7Zx8kgX%2Fuploads%2FuXIN3gCYsN6R0k2gyRgJ%2Fmceclip2%20(1).png?alt=media&#x26;token=e5371ea6-9f62-4bd6-b7c9-5fbff20cc738" alt=""></div>

#### **App Transport Security**

App Transport Security (ATS) is an Apple security feature that enforces HTTPS connections. Make sure you disable this by setting the **Allow Arbitrary Loads** property to **Yes** so that you get the HTTP traffic as well. For more information, see [ATS Configuration for DT Exchange SDK](https://app.gitbook.com/s/8KSLu5HNiyDWpvGRZh7B/publishers/sdk-configuration/integrating-the-ios-sdk#step-4-optionally-configure-tracking-permission-alert-using-att-framework-for-ios-14).
