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

CocoaPods Issues

Clean and Retry

Reset CocoaPods Completely

If repo errors persist:

Fallback to Swift Package Manager

If CocoaPods continues to fail, use SPM instead:
  1. Remove Podfile and Pods folder
  2. Open your .xcodeproj in Xcode
  3. Go to File → Add Package Dependencies
  4. Add https://github.com/cometchat/cometchat-uikit-ios with version 5.1.9
  5. Add https://github.com/cometchat/chat-sdk-ios with version 4.1.0

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