Build Demo app
#
Requirements- Latest stable Xcode
#
Get the client tokenTo 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 exampleBanubaClientToken.swift
#
Get the Banuba SDK archiveWith 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 appOpen
src/BanubaSdk/BanubaSdk.xcworkspace
in XCode.Select the target
BanubaSdkApp
inBanubaSdkApp
project.Drag
BanubaEffectPlayer.xcframework
fromBNBEffectPlayer/bin
to Banuba SDK Demo app.
- Sign the target with your provisioning profile in Signing seciton of the target.
- In
General
remove the existing references inFrameworks, Libraries, and Embedded Content
and addBanubaEffectPlayer.xcframework
.
- Open the tab
Build Phases โ Copy Bundle Resources
. Replace the existing reference toeffects
with youreffects
folder. Provide a path to the right folder via Xcode.
- Open the project
BanubaSdk
and targetBanubaSdk
, remove the existing reference inFrameworks and Libraries
and addBanubaEffectPlayer.xcframework
.
- 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).
- Now you can run the Banuba SDK Demo app example on your device