Link up
Before you start
This document covers how to integrate the DFINERY iOS SDK into your iOS app.
SDK Support Environment
iOS 12.0 +
Xcode 15.0 +
Installing the SDK
DFINERY iOS SDK supports CocoaPods, Swift Package Manager (SPM), and manual installation.
SDK Initialization
Modifying AppDelegate
Import the SDK in your AppDelegate.swift file as follows:
import DfinerySDKAdd SDK initialization code to the AppDelegate class.
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        Dfinery.shared().sdkInit(serviceId: "SERVICE_ID")
        
        return true
    }
}Import the SDK in your AppDelegate.m file as follows:
#import <DfinerySDK/DfinerySDK.h>Add SDK initialization code to the AppDelegate class.
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    [[Dfinery shared] sdkInitWithServiceId:@"SERVICE_ID"];
    return YES;
}SDK Setup
Activate log
This is the log activation setting for debug. When this value is set, the log will be displayed in the debug console.
Dfinery.shared().sdkInit(
    serviceId: "SERVICE_ID",
    config: [DFConfig.LOG_ENABLE: true]
)[[Dfinery shared] sdkInit:@"SERVICE_ID"
                withConfig:@{DFConfig.LOG_ENABLE: @YES}];complete
SDK installation and initialization is complete.
Last updated




