Install the BaltoSDK in an iOS app (Unity)

Note: Balto is compatible with OS, iOS 9.0 or later.

This article will guide you through installing the BaltoSDK into your Xcode project created with Unity.

Settings in Unity

iOS App Build

Launch Unity and open your project and go to File → Build Settings.

Select iOS as the platform and click Build.

Settings in Xcode

Open the created project file in Xcode.

Add the BaltoSDK.framework into your project and move it to the Framework folder.

Activate the BaltoSDK

  1. Open your Xcode project (If you used CocoaPods, open Xcode workspace).
  2. In Xcode head to → Project → BuildPhrases.
  3. Add the following code to Run Script.
    /bin/sh "${PROJECT_DIR}/BaltoSDK.framework/"

Swift Library Setting

BaltoSDK is written in Swift. 

Xcode → Project → Build Settings → Build Options and where it says,  Always Embed Swift Standard Libraries, select YES

Embed the BaltoSDK

Open the file in your project.

Find the file name defined by  AppControllerClassName and embed the following codes into the file. (In this case, embed the code to file).

#import <BaltoSDK/BaltoSDK-Swift.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [Balto with];
    return YES;
For BaltoSDK versions 3.1.3 and before, please embed the following code. Version 4.0.0 and later will not need to embed this code.
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    [Balto returnFromBaltoWithOpenURL:url options:options];
    return YES;

The Japanese version of this article can be found here:

Still need help? Contact Us Contact Us