Skip to main content

Integration via CocoaPods

Add the dependency to your project’s Podfile:
Then run the installation command:

Integration via Source Code

If you need to use the latest development version, you can integrate directly from the GitHub repository:

Swift Package Manager

You can also integrate using Swift Package Manager:
  1. In Xcode, go to File → Add Package Dependencies
  2. Enter the repository URL: https://github.com/WuKongIM/WuKongIMiOSSDK.git
  3. Select the version and add to your project

Manual Integration

For manual integration:
  1. Download the latest release from GitHub Releases
  2. Drag WuKongIMSDK.framework into your project
  3. Add the framework to your target’s “Frameworks, Libraries, and Embedded Content”
  4. Set “Embed & Sign” for the framework

Basic Setup

After integration, import the SDK in your code:
Or in Objective-C:

Initialization

Initialize the SDK in your AppDelegate:

Configuration Options

You can configure various options during initialization:

Permissions

Add necessary permissions to your Info.plist:

Next Steps

Connection Management

Learn how to manage connection status

Message Handling

Implement message sending and receiving

Channel Management

Manage channels and groups

Conversation Management

Handle conversation lists