Skip to main content
This guide covers common issues and solutions when working with the CometChat iOS UI Kit.

CocoaPods Issues

CocoaPods is deprecated for the UI Kit: the last pod is 5.1.18, and new releases ship through Swift Package Manager only. Use these steps only for an existing CocoaPods project, and plan to move to SPM.

Clean and Retry

Reset CocoaPods Completely

If repo errors persist:

Fallback to Swift Package Manager

If CocoaPods continues to fail, use SPM instead:
  1. In your project folder (where the Podfile is), run pod deintegrate to take CocoaPods out of the Xcode project, then delete the Podfile, Podfile.lock, Pods folder and .xcworkspace
  2. Open your .xcodeproj in Xcode and set the app target’s Minimum Deployments to iOS 15.1 or later (the UI Kit package requires it)
  3. Go to File → Add Package Dependencies
  4. Add https://github.com/cometchat/cometchat-uikit-ios with Up to Next Major Version from 5.2.3
  5. Don’t add chat-sdk-ios yourself — the UI Kit package resolves CometChatSDK 4.1.10 or later. For calling, add https://github.com/cometchat/calls-sdk-ios with Up to Next Major Version from 5.0.4.

Initialization Issues


Theming & Styling


Conversations


Users


Groups


Group Members


Message Header


Message List


Message Composer


Calling


AI Features


Events


Permissions (Info.plist)

Add these keys to your Info.plist for full functionality:

Debug Checklist

When troubleshooting issues, verify the following:
  1. SDK Initialization
    • CometChatUIKit.init(uiKitSettings:) called with correct App ID, Region, and Auth Key
    • Init must complete before calling login()
  2. User Authentication
    • User is logged in via CometChatUIKit.login(uid:)
    • Auth token is valid and not expired (if using loginWithAuthToken())
  3. Dashboard Settings
    • Features are enabled (AI, Reactions, etc.)
    • API keys have correct permissions
  4. Network
    • Device has internet connectivity
    • WebSocket connection is established
  5. Permissions
    • Required permissions added to Info.plist
    • User has granted permissions at runtime

Getting Help

Sample App

Complete implementation example

UIKit Source

CometChat UIKit iOS repository

Error Guide

Complete list of error codes

Support

Contact CometChat support