Install Simple Log Service (SLS) SDK for iOS before you use the SDK to call SLS operations.
Prerequisites
-
Simple Log Service is activated. Activate Simple Log Service.
An iOS development environment is set up. For more information, see Apple Developer.
Basic information
Item | Description |
SDK name | Simple Log Service (SLS) SDK for iOS |
Developer | Alibaba Cloud Computing Co., Ltd. |
SDK version | 4.3.22 |
SDK package name | com.aysls.cocoa.producer |
SDK update date | 2026.10.20 |
SDK size | 2.81 MiB |
SDK MD5 | bc6c4ed5e8f87a86b573b1a2d04d590f |
SDK download |
Procedure
Create an iOS project.
In the project folder, create a Podfile and add the following dependency import configuration.
# You must import the following master repositories: source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/aliyun-sls/Specs.git' # If you want to use a repository available in the Chinese mainland, you must import the following repository: source 'https://gitee.com/aliyun-sls/Specs.git' pod 'AliyunLogProducer', '~> 4.3.22'For more information about versions, see Release notes of Alibaba Cloud Simple Log Service SDK for iOS on GitHub.
In the project folder, run the following command to import the dependencies:
pod install --repo-updateAfter the SDK is installed, you can call SLS SDK operations in the project.
References
In addition to its native SDK, SLS also supports the common Alibaba Cloud SDKs. For more information, see Simple Log Service_SDK Center_Alibaba Cloud OpenAPI Explorer.
For more information about sample code, see Alibaba Cloud Simple Log Service SDK for iOS on GitHub.
Compliance usage instructions
You must inform users that you use the Simple Log Service (SLS) SDK and add the following reference clauses to your privacy policy.
SDK name: Simple Log Service (SLS) SDK
Purpose: Perform statistical analysis on app data.
Operator: Alibaba Cloud Computing Co., Ltd.
Types of personal information collected: device information, network information, application information (application name and application version), and carrier information.
Add the preceding clauses to your privacy policy. Display the privacy policy in a pop-up before the app runs for the first time and obtain consent from end users.