Installation
Add the Dixa Messenger SDK to your iOS app.
Requirements
| Requirement | Details |
|---|---|
| iOS | 15 |
| Xcode | 26.2 |
| Swift language mode | Swift 5 or Swift 6 |
| Messenger token | An admin can find it in the Dixa Dashboard under Settings > Messenger > (your messenger) > Setup |
Installation
Install the SDK with Swift Package Manager (recommended), CocoaPods, or by adding the XCFramework by hand.
Swift Package Manager (recommended)
-
In Xcode, select File > Add Package Dependencies… and enter this URL:
https://github.com/dixahq/ios-messenger -
Keep the dependency rule Up to Next Major Version, so you get every fix in the current major version.
In a Package.swift manifest, replace <VERSION> with the latest version from the releases page:
.package(url: "https://github.com/dixahq/ios-messenger", from: "<VERSION>")CocoaPods
From 2 December 2026, CocoaPods' central catalogue (trunk) no longer takes new versions, so new versions of the SDK are published in our own catalogue. Add both sources at the top of your Podfile, ours first:
source 'https://github.com/dixahq/cocoapods-specs.git'
source 'https://cdn.cocoapods.org/'
pod 'DixaMessengerKit', '~> 2.3'Then run pod install. Without our source, CocoaPods keeps installing the last version on trunk and doesn't show newer ones.
- Versions up to 2.3.1 keep installing from trunk.
- If CocoaPods doesn't find a new version, run
pod repo update, thenpod install. - If your app already uses the SDK,
pod installkeeps the version in yourPodfile.lock. Runpod update DixaMessengerKitto move to the newest version yourPodfileallows.
Manual
- Download the XCFramework from the releases page and unzip it.
- Place it on the Framework search path of your Xcode project and add it to your app target.
- Set it to Embed & Sign.
Next, configure the SDK.