Integrate Linkus SDK for macOS
To integrate 'Linkus SDK for macOS', you need to import 'Linkus SDK for macOS' to your macOS project and initialize it.
Requirements and Prerequisites
- Requirements
-
Make sure that your development environment meets the following requirements:
- macOS: Version 10.13 or later
- Xcode: Version 14.3 or later
- Prerequisites
- You have enabled Linkus SDK on PBX.
Demo and Source code
Before the integration, we recommend that you try out the Demo and review the source code of 'Linkus SDK for macOS' to have an overview of the framework and workflow of 'Linkus SDK for macOS'.
For more information, go to the GitHub Repository of 'Linkus SDK for macOS'.
Step 1. Import 'Linkus SDK for macOS'
- Use CocoaPods to integrate 'Linkus SDK for macOS'
-
Note: Before the integration, make sure that you have installed CocoaPods. For more information, see Getting Started with CocoaPods.
- Manually integrate 'Linkus SDK for macOS'
-
- Go to the GitHub Repository of 'Linkus SDK for macOS', and download 'Linkus SDK for macOS'.
- In Xcode, add the linkus_sdk_MacOS.framework to the corresponding Target, and select Copy items if needed in the pop-up window.
- In the macOS project, go to
libcurl.dylib libxml2.dylib libc++.dylib
and add the following
libraries:
Step 2. Initialize 'Linkus SDK for macOS'
- In macOS project, open PrefixHeader.pch file and import header
files.
#import <linkus_sdk_MacOS/linkus_sdk.h>
- Refer to the Demo to initialize 'Linkus SDK for macOS'.
What to do next
Request the SDK login signature from PBX server for authentication and login to 'Linkus SDK for macOS'.
For more information, see Obtain Login Signature for 'Linkus SDK for macOS'.