AI Integration Quick Reference
AI Integration Quick Reference
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:- In your project folder (where the
Podfileis), runpod deintegrateto take CocoaPods out of the Xcode project, then delete thePodfile,Podfile.lock,Podsfolder and.xcworkspace - Open your
.xcodeprojin Xcode and set the app target’s Minimum Deployments to iOS 15.1 or later (the UI Kit package requires it) - Go to File → Add Package Dependencies
- Add
https://github.com/cometchat/cometchat-uikit-ioswith Up to Next Major Version from5.2.3 - Don’t add
chat-sdk-iosyourself — the UI Kit package resolvesCometChatSDK4.1.10 or later. For calling, addhttps://github.com/cometchat/calls-sdk-ioswith Up to Next Major Version from5.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 yourInfo.plist for full functionality:
Debug Checklist
When troubleshooting issues, verify the following:-
SDK Initialization
CometChatUIKit.init(uiKitSettings:)called with correct App ID, Region, and Auth Key- Init must complete before calling
login()
-
User Authentication
- User is logged in via
CometChatUIKit.login(uid:) - Auth token is valid and not expired (if using
loginWithAuthToken())
- User is logged in via
-
Dashboard Settings
- Features are enabled (AI, Reactions, etc.)
- API keys have correct permissions
-
Network
- Device has internet connectivity
- WebSocket connection is established
-
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