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 DfinerySDK
Add 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
}
}
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]
)
complete
SDK installation and initialization is complete.
Last updated