Skip to main content

Import the SDK

You can import Chat UI iOS using one of the following methods:

  • Manual XCFramework integration
  • CocoaPods
  • Swift Package Manager (SPM)

Requirements

  • Xcode 14.0 or later
  • iOS 13.0 or later
  • Objective-C or Swift project
  • Swift 5.0 or later
  • CocoaPods 1.10.0 or later

CocoaPods

To integrate Chat UI iOS using CocoaPods:

  1. Add the SDK to your Podfile:
ruby
platform :ios, '13.0'

target 'YourApp' do
use_frameworks!
pod 'NexconnChatUI'
end
  1. Install the dependency:
shell
pod install
  1. After installation:
    • Open the generated .xcworkspace in Xcode
    • Import the SDK in your source files
swift
import NexconnChatSDK
import NexconnChatUI

Swift Package Manager

  1. Open your Xcode project.
  2. Go to File > Add Package Dependency.
  3. Paste the Chat UI SDK repository URL in the search field:
text
https://github.com/NexconnAI-Dev/nexconn-chatui-ios
  1. Select a version rule, check NexconnChatSDK and NexconnChatUI, and click Add Package.

SDK components

Swift PackageXCFrameworkDescription
NexconnChatUINexconnChatUI.xcframeworkChat UI SDK

Integration guidance

  • Use only one integration method per target - don't mix CocoaPods with SPM
  • The Chat UI package resolves the required Chat SDK dependency automatically
  • If user profiles or group information doesn't display correctly:
    • Verify the SDK package is linked to your app target
    • Confirm you've set the Chat UI data sources after connection

API reference