개발자 가이드
User GuideDeveloper GuideAPI Guide🏠
English
English
  • 홈
  • 공통
    • Unified ID Linkage Scenario
    • Constant
    • FAQ
  • 플랫폼 별 가이드
    • Android
      • Link up
      • Event
      • Set User Identification Information
      • User Profile Settings
      • Action
        • Push
        • In-app messages
        • Notification Talk
        • Message
      • Privacy Policy
        • Support for Privacy Protection
        • Preparing for data disclosure requirements on Google Play
      • Release Notes
    • iOS
      • Link up
      • Event
      • Set user identification information
      • User Profile Settings
      • Action
        • Push
        • In-app messages
        • Notification Talk
        • message
      • Release Notes
    • HybridApp
      • Link up
    • Web
      • Link up
      • Event
      • Set user identification information
      • User Profile Settings
      • Action
        • In-app messages
        • Notification Talk
        • Message
      • Advanced use cases
        • Additional Settings
      • Release Notes
Powered by GitBook
On this page
  • Before you start
  • Installing the SDK
  • SDK Initialization
  • SDK Setup
  • Activate log
  • complete
  1. 플랫폼 별 가이드
  2. iOS

Link up

PreviousiOSNextEvent

Last updated 3 months ago

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.

CocoaPods

1. Install CocoaPods

the latest version of CocoaPods.

2. Add dependencies

After adding it to your Xcode project folder, Podfileadd the DFINERY SDK dependency to your Podfile.

target 'YourAppTarget' do  
  pod 'DfinerySDK'
end

target 'YourServiceExtension' do  
  pod 'DfinerySDKServiceExtension'
end

3. Install dependencies

Please install the SDK with the following command in the terminal:

pod install
Swift Package Manager(SPM)

1. Add package dependency in Xcode

2. Enter the DFINERY SDK GitHub repository

The repository name is https://github.com/IGAWorksDev/dfinery-ios-sdk.

3. Enter Dependency Rule and add DFINERYSDK to target

4. Add DFINERYSDKServiceExtension to ServiceExtension target

DFINERY SDK follows

Manual installation

1. Download the framework

Download the latest framework from

2. Add a framework to your project

Add the downloaded framework through Xcode's Targets -> General -> Frameworks, Libraries, and Embedded Content -> + click -> Add Others... -> Add Files..

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
    }
}

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.

Please install
Semantic Versioning 2.0 .
here