mesibo SDK for iOS
The Mesibo SDKs for iOS are available as a Swift Package, and as frameworks that can be installed manually.
Minimum Requirements
- Target iOS 15.0 and above.
- Devices: arm64. Simulator: arm64, that is, a Mac with Apple silicon.
- Latest stable Xcode version.
The mesibo frameworks are dynamic frameworks that bring their own dependencies: you do not need to add any system frameworks or linker flags to your project.
Install Using Swift Package Manager
Swift Package Manager is built into Xcode. It downloads the mesibo frameworks, and links, embeds and signs them in your app.
Step 1: Add the mesibo package
In Xcode, open your project and choose File → Add Package Dependencies…. Enter the package URL:
https://github.com/mesibo/mesibo-ios-sdk
For Dependency Rule, choose Up to Next Major Version, then click Add Package.
Step 2: Choose the products
Select the products you need and add them to your app target:
| Product | What it is | Also brings in |
|---|---|---|
mesibo | Core real-time messaging and calls API | |
MesiboUI | Ready-to-use messaging UI | mesibo |
MesiboCall | Voice and video calls & conferencing UI and API | mesibo |
That’s all.
Using a Package.swift
If your app or library is itself a Swift package, add mesibo to its Package.swift:
dependencies: [
.package(url: "https://github.com/mesibo/mesibo-ios-sdk", from: "version_ios"),
],
targets: [
.target(name: "YourApp", dependencies: [
.product(name: "mesibo", package: "mesibo-ios-sdk"),
.product(name: "MesiboUI", package: "mesibo-ios-sdk"),
.product(name: "MesiboCall", package: "mesibo-ios-sdk"),
]),
]
Update to the latest version
Xcode keeps using the version it resolved until you update. To move to the latest release, choose File → Packages → Update to Latest Package Versions.
Troubleshooting
If you build for Any iOS Simulator Device and see found architecture ‘arm64’, required architecture ‘x86_64’, set Build Settings → Architectures (ARCHS) to arm64, or build for a specific simulator. The mesibo simulator frameworks are arm64 only.
If Xcode does not find a new mesibo version, reset the package caches with File → Packages → Reset Package Caches.
Install Manually
You can also add the mesibo frameworks to your project yourself.
Step 1: Download the frameworks
Download the frameworks from the latest release on GitHub, and unzip them:
| File | Framework |
|---|---|
mesibo-<version>.xcframework.zip | Core real-time messaging and calls API (always needed) |
mesiboui-<version>.xcframework.zip | Ready-to-use messaging UI |
mesibocall-<version>.xcframework.zip | Voice and video calls & conferencing |
Always use frameworks of the same version together.
Step 2: Add them to your project
- Drag the
.xcframeworkfolders into your Xcode project. When Xcode asks, select Copy items if needed and your app target. - Select your app target, open General → Frameworks, Libraries, and Embedded Content, and set each mesibo framework to Embed & Sign.
To update, replace them with the frameworks of a newer release.
Import Frameworks into your project
At this point, everything’s in place for you to start using mesibo. Just import the frameworks and start coding!
import mesibo
import MesiboUI
import MesiboCall
#import <mesibo/Mesibo.h>
#import <mesiboui/MesiboUI.h>
#import <mesibocall/MesiboCall.h>
You can now begin developing features with mesibo.
Configuring iOS Permissions
While mesibo APIs abstract away permission handling across platforms, iOS requires some additional configuration. Apps need to provide usage descriptions for sensitive resources like contacts, camera, microphone etc.
These usage strings are defined in the app’s Info.plist file. For convenience, you can copy the Info.plist from mesibo’s sample apps - it contains the necessary keys prepopulated. Simply update the permission messages to match your app branding and use cases.
For more details, refer Apple’s documentation on requesting protected resources