This article describes how to integrate the iOS log SDK.
Prerequisites
Before integration, ensure that you have created an application in Terminal Performance Monitoring Pro (RUM Pro) and obtained the corresponding AppKey and AppID. iOS Requirements: iOS 9.0 or later.
Importing TDOS_Diagnose.framework
The TDOS_Diagnose SDK supports integration via CocoaPods. Simply add the following line to the Podfile.
pod 'TDOS_Diagnose', '0.8.2.1'
Importing TDOS_Diagnose will include all of its modules by default. The main modules are:
TDOS_Diagnose/Core: Core module, which provides log upload and command polling capabilities.
TDOS_Diagnose/DefaultLogger: Default log printing module implementation, which depends on mars.framework.
TDOS_Diagnose/DefaultStorageImpl: Default KV storage implementation, which depends on MMKV.
TDOS_Diagnose/DefaultFilePacker: Default file compression implementation, which depends on SSZipArchive.
Note:
Except for the Core module, DefaultLogger, DefaultStorageImpl, and DefaultFilePacker can be replaced with other modules based on your needs. For details, see SDK Initialization.