---
title: "Migrate Adapty iOS SDK to v3.4"
description: "Migrate to Adapty iOS SDK v3.4 for better performance and new monetization features."
---

Adapty SDK 3.4.0 là một bản phát hành lớn, giới thiệu các cải tiến yêu cầu bạn thực hiện các bước migration.

## Cập nhật khởi tạo Adapty SDK \{#update-adapty-sdk-activation\}

<Tabs groupId="current-os" queryString> 
<TabItem value="swift" label="Swift" default>

```diff showLineNumbers
// In your AppDelegate class:

let configurationBuilder =
    AdaptyConfiguration
        .builder(withAPIKey: "PUBLIC_SDK_KEY")

- Adapty.activate(with: configurationBuilder) { error in
+ Adapty.activate(with: configurationBuilder.build()) { error in
  // handle the error
}
```

**Cập nhật file paywall dự phòng**

Cập nhật các file paywall dự phòng để đảm bảo tương thích với phiên bản SDK mới:

1. [Tải xuống các file paywall dự phòng đã được cập nhật](fallback-paywalls) từ Adapty Dashboard.
2. [Thay thế các paywall dự phòng hiện có trong ứng dụng mobile của bạn](ios-use-fallback-paywalls) bằng các file mới.
</TabItem>

<TabItem value="swiftui" label="SwiftUI" default>

```diff showLineNumbers

@main
struct SampleApp: App {
    init() {
      let configurationBuilder =
        AdaptyConfiguration
          .builder(withAPIKey: "PUBLIC_SDK_KEY")
      
        Task {
-            try await Adapty.activate(with: configurationBuilder)
+            try await Adapty.activate(with: configurationBuilder.build())
        }
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
```

**Cập nhật file paywall dự phòng**

Cập nhật các file paywall dự phòng để đảm bảo tương thích với phiên bản SDK mới:

1. [Tải xuống các file paywall dự phòng đã được cập nhật](fallback-paywalls) từ Adapty Dashboard.
2. [Thay thế các paywall dự phòng hiện có trong ứng dụng mobile của bạn](ios-use-fallback-paywalls) bằng các file mới.
</TabItem>
</Tabs>