Install Simple Log Service SDK for iOS

Updated at:

Install Simple Log Service (SLS) SDK for iOS before you use the SDK to call SLS operations.

Prerequisites

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

Privacy policy

Simple Log Service (SLS) SDK Privacy Policy

SDK download

AliyunLogProducer

Compliance usage instructions

Compliance guide for the Simple Log Service (SLS) SDK

Procedure

  1. Create an iOS project.

  2. 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.

  3. In the project folder, run the following command to import the dependencies:

    pod install --repo-update

    After the SDK is installed, you can call SLS SDK operations in the project.

References

Compliance usage instructions

Important

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.

  • Privacy policy URL: Simple Log Service (SLS) SDK Privacy Policy

What to do next

Get started with Simple Log Service SDK for iOS