Skip to main content

iOS Packages

Banuba SDK provides CocoaPods' pods in a custom repository. It is assumed that you are familiar with CocoaPods usage, if you are not, please read the "Using CocoaPods" guide.

info

See the example of how to use specific feature with modules in our Tutorials.

To start using Banuba SDK from CocoaPods repo, just add a custom source to your Podfile:

Podfile
source 'https://github.com/sdk-banuba/banuba-sdk-podspecs.git'

Than add Banuba SDK dependencies to your target:

Podfile
target 'quickstart-ios-swift' do
use_frameworks!

pod 'BanubaSdk', '~> 1.4'
end

You have two options here: just add "BanubaSdk" metamodule or include only the specific packages. The example above shows metamodule usage. See CocoaPods repo for the list of all available modules and versions.

In case of specifying only the required modules as project dependencies it is your responsibility to include everything required for desired effect. Please keep in mind that there are several "must have" modules: BNBSdkCore, BNBEffectPlayer, BNBScripting. These modules must be added every time, anything else is feature-specific and depends on your needs.

Also use only modules with the same version, modules with different versions (even minor) may conflict or just work incorrectly with each other.

Complete example configured for CocoaPods usage can be found in our Objective-C and Swift quickstart examples.