> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-platform-docs-release.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrading From V3

> Migrate from CometChat iOS SDK v3 to v4 with updated setup, APIs, dependencies, and behavior changes.

<Accordion title="AI Integration Quick Reference">
  Key changes from v3 to v4:

  * Chat SDK: `pod 'CometChatSDK'` (was `CometChatPro`)
  * Calls SDK: `pod 'CometChatCallsSDK'` (was `CometChatCalls`)
  * Import: `import CometChatSDK` (was `import CometChatPro`)
  * Import Calls: `import CometChatCallsSDK` (was `import CometChatCalls`)
  * Class access: `CometChatSDK.` (was `CometChatPro.`)
</Accordion>

Upgrading from v3 to v4 is fairly simple. Below are the major changes that are released as a part of CometChat v4. We have renamed our SDK from CometChatPro to CometChatSDK and CometChatCalls to CometChatCallsSDK for Chat and Calls SDK receptively. Note only import name is changed all class name inside the SDKs are same as it is before. There will only be few changes required for v4 migration. Let's start!

### Pod file Changes

Change the SDK name CometChatPro to CometChatSDK for chat SDK and provide it v4's latest version. Same for calls SDK change it from CometChatCalls to CometChatCallsSDK.

<Tabs>
  <Tab title="Swift">
    ```ruby theme={null}
    pod 'CometChatSDK', '4.1.0'
    pod 'CometChatCallsSDK', '4.2.2'
    ```
  </Tab>
</Tabs>

<Note>
  For the next steps, it recommended to open you iOS project root Folder in VSCode and use it's global find and replace feature.
</Note>

## Import statement changes

For each and every file in your project that uses CometChat's chat SDK or calls SDK, the import statement needs to be change

#### Chat SDK

Changing import statement to CometChatSDK for every file where chat SDK is used. You can do VSCode's find and replace for the particular statement `import CometChatPro` to `import CometChatSDK` .

<Tabs>
  <Tab title="Swift">
    ```swift theme={null}
    import CometChatPro ~> import CometChatSDK
    ```
  </Tab>
</Tabs>

#### Calls SDK

Changing import statement to CometChatCallsSDK for every file where calls SDK is used. You can do VSCode's find and replace for the particular statement `import CometChatCalls` to `import CometChatCallsSDK` .

<Tabs>
  <Tab title="Swift">
    ```swift theme={null}
    import CometChatCalls ~> import CometChatCallsSDK
    ```
  </Tab>
</Tabs>

## Access class via SDK name changes

In your project there might be cases where you have accessed SDK classes with the SDK name. Like `CometChatPro.User` or `CometChatSDK.Call` . Since this import is done using SDK name, you have to replace that as well with the new SDK's name.

<Tabs>
  <Tab title="Swift">
    ```swift theme={null}
    CometChatPro. ~> CometChatSDK.
    CometChatCalls. ~> CometChatCallsSDK
    ```
  </Tab>
</Tabs>

For this as well do a find and replace all over the project for exact statement `CometChatPro.` to `CometChatSDK.` for chat SDK. And from `CometChatCalls.` to `CometChatCallsSDK.` for calls SDK.

All Done! now just do pod install, build you project and enjoy all the new features from v4.

***

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Setup SDK" icon="gear" href="/sdk/ios/setup">
    Install and configure the CometChat iOS SDK
  </Card>

  <Card title="Key Concepts" icon="book" href="/sdk/ios/key-concepts">
    Learn the core concepts behind CometChat v4
  </Card>
</CardGroup>
