# 1.32.0 -> 2.0.1

## Migrating your code

#### Remove standalone ImsKmpSdk framework integration

Remove any separate `ImsKmpSdk` framework import or link. It’s bundled with the SDK now; a duplicate dependency may break compilation or crash at runtime.

#### TripDetectionManager.getCrashClient()

**New**

```swift
let client = TripDetectionManager.getCrashClient()
client?.startListeningForCrashEvents(listener)
// …
client?.provideUserFeedback(feedback)
```

Handle **`nil`** if Crash Detection is unavailable. Checkout [Crash Detection Events](/crash-detection-events.md)for more details.

***

#### Initialization

Remove these calls from your call to `initialize()`:

* `configRegion`
* `configEnvironment`

If your app read **config URL or region** from the saved SDK configuration object, remove that usage

***

#### Identity

**Before**

```swift
Identity(apiKey = "…", externalReferenceID = "…")
```

**After**

```swift
Identity(externalReferenceID = "…")
```

Update construction, persistence, and any code that used **`apiKey`** on **`Identity`**.

{% hint style="info" %}
Note that `SDKConfig.shared.identity` should be explicitly checked at app launch and `setIdentity()` called if it is nil. This was the expected behaviour in prior SDK versions, but is required for version `2.0.0`
{% endhint %}

***

#### Identity.clearIdentity()

**Before**

```swift
identity.clearIdentity()
```

**After**

```swift
await identity.clearIdentity()
```

Call on logout when the user should be fully signed out of the SDK. Any SDK API call made after invoking this method will fail.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.ims.tech/migration-notes/ios/1.32.0-greater-than-2.0.0.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
