Webex Messaging
Integrate the SDK
You can integrate the Webex iOS SDK into your app using either CocoaPods or Swift Package Manager.
anchorUsing CocoaPods
anchorWarning
On December 2, 2026, CocoaPods trunk will stop accepting new pod versions. Existing CocoaPods integrations will keep working, but you must use Swift Package Manager to get later Webex iOS SDK releases. See the CocoaPods trunk read-only plan.
Swift Package Manager is supported from WebexSDK 3.17.0 onward. Both channels deliver the same binaries. For Swift Package Manager, see Using Swift Package Manager.
Follow the steps in this article to create a new Xcode workspace that will use CocoaPods to install the SDK.
Assuming you already have an Xcode project, for example, MyWebexApp, here are the steps to integrate the Webex iOS SDK into your Xcode project using CocoaPods:
Install CocoaPods:
gem install cocoapodsSetup CocoaPods:
pod setupCreate a new file,
Podfile, with following content in yourMyWebexAppproject directory:source 'https://github.com/CocoaPods/Specs.git'- Full SDK : WebexSDK
target 'WebexDemoApp' do platform :ios, '15.0' pod 'WebexSDK' endInstall the Webex iOS SDK from your
MyWebexAppproject directory:pod installAdd an entry,
GroupIdentifier, to your app’sInfo.plistwith the value as your app'sGroupIdentifier(required so we can retrieve a path to the local data warehouse).Modify the
Signing & Capabilitiessection in your Xcode project as follows:
A sample app that implements this SDK with source code can be found at https://github.com/webex/webex-ios-sdk-example.
The sample app is for illustration purposes only and it not meant for production environments.
anchorUsing Swift Package Manager
anchorFrom WebexSDK 3.17.0 onward, you can integrate the SDK with Swift Package Manager instead of CocoaPods. This requires Xcode 15 or later and an iOS 15 or later deployment target.
In Xcode, choose File > Add Package Dependencies and enter the package URL:
https://github.com/webex/webex-ios-sdkSet the dependency rule to Up to Next Major Version, starting at
3.17.0.Add one WebexSDK product to your app target. For messaging-only use, add
WebexSDKMessage, which is equivalent topod 'WebexSDK/Message'. For the full SDK, addWebexSDK. Whichever product you choose, your code always usesimport WebexSDK.Complete the same app configuration as the CocoaPods flow: add the
GroupIdentifierentry to your app'sInfo.plistand configure Signing & Capabilities with App Groups.