> For the complete documentation index, see [llms.txt](https://platform-business.gitbook.io/adx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform-business.gitbook.io/adx/en/ios/integrate.md). Agents can also search and read this documentation through its [MCP server](https://platform-business.gitbook.io/adx/~gitbook/mcp).

# Integrate

## 0. Latest ADX iOS SDK version

{% hint style="success" %}
Version 2.9.2

Release Date : 2026/11/18
{% endhint %}

## 1. Requirements

{% hint style="info" %}

* iOS 15.0 or later
* Xcode 26.2 or later
  {% endhint %}

{% hint style="danger" %}
From ADX iOS SDK version 2.7.1, if the iOS app project's Info.plist file contains the "AppLovinSdkKey" key, the following error message will be printed in Xcode console after app launch and the app will crash, so it must be removed.\
\
\[AppLovinSdk] ERROR \[ALSdk] Invalid initialization process: please remove the AppLovinSdkKey entry from your Info.plist and set your SDK key with the ALSdkInitializationConfiguration object. Then initialize the SDK as soon as possible with -\[ALSdk initializeWithConfiguration:completionHandler:] before accessing any SDK fields or APIs.
{% endhint %}

## 2. Integrating the ADX iOS SDK <a href="#adxlibrary-cocoapods" id="adxlibrary-cocoapods"></a>

{% hint style="info" %}
The following content may change according to ADX iOS SDK updates.
{% endhint %}

### Swift Package Manager&#x20;

1. Open your project in Xcode
2. Go to File > Add Package Dependencies...
3. Enter the package repository URL: `https://github.com/adxcorp/ADXLibrary_iOS_Release.git`
4. Select the version rule (e.g., "Up to Next Major Version" from 2.9.2)
5. Click Add Package
6. Select **`ADXLibrary`** and add it to your target. The remaining products are optional — add only the ones your project needs.&#x20;

{% hint style="info" %}
**Do not select `ADXLibrary-KADP`.**
{% endhint %}

7. Enable the `-ObjC` flag in Xcode: click on your project settings, go to Build Settings, search for Other Linker Flags and add `-ObjC`.&#x20;

### Cocoapods

1\. In your project's `Podfile` , open it and add the following content.

```
# Add library download sources
source 'https://github.com/adxcorp/AdxLibrary_iOS_Release.git'
source 'https://github.com/CocoaPods/Specs.git'      

# Deployment Target Version
platform :ios, '15.0'

# Add ADX library (banner, native, interstitial, rewarded)
pod 'ADXLibrary', '2.9.2'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # If a build error related to the minimum iOS deployment target occurs in Xcode 27.0 or later, add the following code.
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'

      # If you encounter build errors releated to TOOL CHAIN on Xcode 15.0 or later, add the code below.
      xcconfig_path = config.base_configuration_reference.real_path
      xcconfig = File.read(xcconfig_path)
      xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
      File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
    end
  end
end
```

{% hint style="warning" %}
ADX SDK 2.9.2 is the final version distributed via CocoaPods. For subsequent versions, we recommend installing the SDK using Swift Package Manager (SPM).
{% endhint %}

{% hint style="info" %}
In Xcode 27.0 or later, the minimum deployment target for all targets must be iOS 15.0 or later. ADX SDK version 2.9.0 or earlier supports iOS 13.0, which may cause build failures when using CocoaPods with Xcode 27.

In that case, refer to and modify the Podfile content above.
{% endhint %}

{% hint style="info" %}
When building on Xcode 15.0 or later, some ad network SDKs may produce errors like the following.

In that case, refer to and modify the Podfile content above.

***

**DT\_TOOLCHAIN\_DIR cannot be used to evaluate LIBRARY\_SEARCH\_PATHS, use TOOLCHAIN\_DIR instead**
{% endhint %}

2\. Use the command below to install the library, then find and open the file with the `.xcworkspace` extension.

```ruby
pod install --repo-update
```

## 3. Project Setting

1\) In the project's Build Settings, set `Enable Bitcode` to `No` .

![](https://3796597184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXvNSN7tADq98rEmif2C%2Fuploads%2Fgit-blob-a6dfc92ae2d9ac1f9f1abb6b6d98432b5a0173b3%2F%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202021-06-16%20%EC%98%A4%ED%9B%84%204.35.54.png?alt=media)

2\) In Xcode > Build Settings > Other Linker Flags, if you build using the "-all-load" or "-force\_load" flags, symbol duplication (Symbol Duplicate) may occur. In that case, add "-ObjC" flag.

<figure><img src="https://3796597184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXvNSN7tADq98rEmif2C%2Fuploads%2Fgit-blob-2bc7ce8782ac83115d10a6b18659198247835c29%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-16%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%209.55.26%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

3\) After selecting your build target and opening Build Settings > Framework Search Paths, verify that `"$(inherited)"` is included. If it is missing, a build error may occur because the related libraries cannot be found, so be sure to add it.

<figure><img src="https://3796597184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXvNSN7tADq98rEmif2C%2Fuploads%2Fgit-blob-f70ecb9d1d634a62f46dd5499cee853dfd5e9154%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-04-07%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%206.40.56.png?alt=media" alt=""><figcaption></figcaption></figure>

## 4. Supporting iOS 14+

When supporting iOS 14+ with the [App Tracking Transparency (ATT) framework](https://developer.apple.com/documentation/apptrackingtransparency?language=objc), you must request user authorization in order to obtain the IDFA (Identifier for Advertisers). For more information, please refer to the link below.

{% content-ref url="/pages/JmEGe3BJFStV1atmfyfD" %}
[App Tracking Transparency](https://platform-business.gitbook.io/adx/en/ios/supporting-ios-14/app-tracking-transparency.md)
{% endcontent-ref %}

## 5. Setting up the AdMob App ID

* Open your `Info.plist` file, add the `GADApplicationIdentifier` key, and enter the AdMob App ID that was issued to you.<br>

  <div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p>If you do not add <code>GADApplicationIdentifier</code>, the following message will appear in the Xcode console and the app will terminate unexpectedly:<br><br><code>The Google Mobile Ads SDK was initialized incorrectly.</code></p><hr><p>&#x3C;key>GADApplicationIdentifier&#x3C;/key><br>&#x3C;string>ADMOB_APP_ID&#x3C;/string></p></div>
