> 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/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. 최신 ADX iOS SDK 버전

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

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

## 1. 최소 지원 사양

{% hint style="info" %}

* iOS 15.0 이상
* Xcode 26.2 이상
  {% endhint %}

{% hint style="danger" %}
ADX iOS SDK 2.7.1 버전부터, iOS 앱 프로젝트의 info.plist 파일에 "AppLovinSdkKey" 키가 포함되어 있으면 앱 실행 후 아래의 에러 메시지가 Xcode 콘솔에 출력되고 비정상 종료가 발생하므로 제거해야 합니다.\
\
\[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. ADX iOS SDK 추가 <a href="#adxlibrary-cocoapods" id="adxlibrary-cocoapods"></a>

{% hint style="info" %}
ADX iOS SDK 업데이트에 따라 아래 내용이 변경될 수 있습니다.
{% endhint %}

### Swift Package Manager&#x20;

1. Xcode에서 프로젝트를 열고,  상단 메뉴에서 아래 경로의 버튼을 클릭합니다.\
   "`File > Add Package Dependencies...`"&#x20;
2. 아래 의 패키지 레포지토리 URL를 입력합니다. \
   `https://github.com/adxcorp/ADXLibrary_iOS_Release.git`
3. 버전 규칙를  선택합니다. (e.g., "Up to Next Major Version" from 2.9.2)
4. `Add Package` 버튼을 클릭합니다.
5. **`ADXLibrary`** 프로덕트를 선택하고 타겟에 추가합니다.  나머지 프로덕트는 선택사항이며 필요에 따라 타겟에 추가합니다.

{% hint style="info" %}
**`ADXLibrary-KADP` 프로덕트는 선택하지 마십시오.**&#x20;
{% endhint %}

6. 프로젝트 설정으로 이동한 뒤 Build Settings 탭에서 Other Linker Flags를 검색하고 `-ObjC`를 추가합니다.

### Cocoapods

1\. 프로젝트의 `Podfile`을 열고 아래 내용을 추가합니다.

<pre><code># 라이브러리 다운로드 소스 추가
source 'https://github.com/adxcorp/AdxLibrary_iOS_Release.git'
source 'https://github.com/CocoaPods/Specs.git'

# 배포 타겟 버전 (Deployment Target Version)
platform :ios, '15.0'

# ADX 라이브러리 추가 (배너,네이티브,전면,보상)
pod 'ADXLibrary', '2.9.2'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # Xcode 27.0 이상 버전에서, iOS 최소 배포 버전 관련 빌드 에러가 발생한다면 아래 코드를 추가하십시오.
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'

      # Xcode 15.0 이상 버전에서, TOOL CHAIN 관련 빌드 에러가 발생한다면 아래 코드를 추가하십시오.
      xcconfig_path = config.base_configuration_reference.real_path
      xcconfig = File.read(xcconfig_path)
      xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
<strong>      File.open(xcconfig_path, "w") { |file| file &#x3C;&#x3C; xcconfig_mod }
</strong>    end
  end
end
</code></pre>

{% hint style="warning" %}
ADX SDK 2.9.2는 CocoaPods을 통해 배포되는 마지막 버전입니다. 이후 버전부터는 Swift Package Manager(SPM)를 통한 설치를 권장합니다.
{% endhint %}

{% hint style="info" %}
Xcode 27.0 이상 버전에서는 모든 타겟의 최소 배포 타겟이 iOS 15.0이어야 합니다. ADX SDK 2.9.0 이하 버전은 iOS 13.0을 지원하므로 CocoaPods를 사용할 때 Xcode 27 빌드가 실패합니다.

이 경우 위의 Podfile 내용을 참조하여 수정합니다.
{% endhint %}

{% hint style="info" %}
Xcode 15.0 이상 버전에서 빌드 시, 일부 광고 네트워크 SDK에서 아래와 같은 에러가 발생할 수 있습니다.

이 경우 위의 Podfile 내용을 참조하여 수정합니다.

***

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

2\. 아래 명령어를 사용하여 라이브러리를 설치하고, 파일 확장자가 `.xcworkspace` 파일을 찾아 열기합니다.

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

## 3. Project Setting

1\) 프로젝트의 Bulid Settings에서 `Enable Bitcode`를 `No`로 변경합니다.

![](https://1887751317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnrruMBC2MOaSQMSAiTJ%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\) XCode > Build Settings > Ohter Linker Flags 에서 "-all-load" 또는 "-force\_load" 플래그를 사용하여 빌드 할 경우, 심볼 중복 (Symbol Duplicate)가 발생할 수 있습니다. 이 경우 "-ObjC" 플래그로 변경하십시오.

<figure><img src="https://1887751317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnrruMBC2MOaSQMSAiTJ%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\) 빌드 타겟 선택 후 > Build Settings > Framework Search Paths 에서 "**$(inherited)**" 값이 추가 되어 있는지 확인하고 추가되어 있지 않다면 관련 라이브러리를 찾을 수 없다는 빌드 에러가 발생할 수 있으므로 반드시 추가해주십시오.

<figure><img src="https://1887751317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnrruMBC2MOaSQMSAiTJ%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. iOS 14+ 지원

iOS 14+ 이상 지원하는 경우 [<mark style="color:blue;">ATT(App Tracking Transparency) Framework</mark>](https://developer.apple.com/documentation/apptrackingtransparency?language=objc)를 적용해야 IDFA (Identifier for Advertisers) 식별자를 얻을 수 있습니다. 자세한 방법은 아래 링크를 참고해주십시오.

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

## 5. AdMob APP ID 설정

* `Info.plist` 파일에 `GADApplicationIdentifier` 키와 발급된 AdMob APP ID를 추가합니다.<br>

  <div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong><code>GADApplicationIdentifier</code></strong>를 추가하지 않으면 다음 메시지가 Xcode 콘솔에 표시되며 앱이 비정상 종료됩니다.<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>
