Skip to main content

Build Demo app

Requirements#

  • Latest stable Xcode

Get the client token#

To start working with the Banuba SDK Demo project for iOS, you need to have the client token. To receive the client token please fill in our form on banuba.com website, or contact us via info@banuba.com.

note

Before building the xCode Demo project, place your client token inside appropriate file in the following location: src/BanubaSdk/BanubaSdkApp/BanubaSdkApp/BanubaClientToken.swift.

Client token usage example#

BanubaClientToken.swift
internal let banubaClientToken = "YOUR_TOKEN_HERE"

Get the Banuba SDK archive#

With the client token, you will also receive the Banuba SDK archive for iOS which contains:

  • Banuba Effect Player XCFramework (BanubaEffectPlayer.xcframework),
  • BanubaSdk Xcode project,
  • Effect examples located under effects folder.

Build the Banuba SDK Demo app#

  1. Open src/BanubaSdk/BanubaSdk.xcworkspace in XCode.

  2. Select the target BanubaSdkApp in BanubaSdkApp project.

  3. Drag BanubaEffectPlayer.xcframework from BNBEffectPlayer/bin to Banuba SDK Demo app.

image

  1. Sign the target with your provisioning profile in Signing seciton of the target.

image

  1. In General remove the existing references in Frameworks, Libraries, and Embedded Content and add BanubaEffectPlayer.xcframework.

image

  1. Open the tab Build Phases โ†’ Copy Bundle Resources. Replace the existing reference to effects with your effects folder. Provide a path to the right folder via Xcode.

image

  1. Open the project BanubaSdk and target BanubaSdk, remove the existing reference in Frameworks and Libraries and add BanubaEffectPlayer.xcframework.

image

  1. Open BanubaSdkApp โ†’ Scheme โ†’ Edit Scheme. On Run tab select the build configuration (debug or release):
  • debug - allows to debug and profile app in realtime,
  • release - build variant allows to test the release variant of the application (faster performance).

image

  1. Now you can run the Banuba SDK Demo app example on your device
Last updated on